Here's an example of how to do it for a table panel using the appendpipe command:
index=x sourcetype=y | appendpipe [stats count | eval fieldA=if(count=0, "No data found in Splunk", fieldA) | eval fieldB=if(count=0, "No data found in Splunk", fieldB) | eval fieldC=if(count=0, "No data found in Splunk", fieldC)] | stats count by fieldA, fieldB, fieldC