I am using splunk cloud 7.2.9. i want to hide a table visualization when it has no results/data from the results.
I was not able to hide a table if it has no results or empty.
Hi
Try with <condition match="'job.resultCount' >0">
<dashboard>
<label>tablecount</label>
<row depends="$show_table$">
<panel>
<table>
<search>
<query>| makeresults
| eval test=1
| where test=0</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
<done>
<condition match="'job.resultCount' >0">
<set token="show_table">true</set>
</condition>
</done>
</search>
<option name="drilldown">none</option>
</table>
</panel>
</row>
</dashboard>
Hi
Try with <condition match="'job.resultCount' >0">
<dashboard>
<label>tablecount</label>
<row depends="$show_table$">
<panel>
<table>
<search>
<query>| makeresults
| eval test=1
| where test=0</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
<done>
<condition match="'job.resultCount' >0">
<set token="show_table">true</set>
</condition>
</done>
</search>
<option name="drilldown">none</option>
</table>
</panel>
</row>
</dashboard>