Hi @Neel88,
You can use below sample. You need to set different dependency token in each panel.
<dashboard>
<label>test_hide</label>
<row>
<panel depends="$panel1$">
<title>Panel 1</title>
<event>
<search>
<query>index=_internal </query>
<earliest>-5m@m</earliest>
<latest>now</latest>
<progress>
<condition match="$job.resultCount$ == 0">
<unset token="panel1"></unset>
</condition>
<condition>
<set token="panel1">true</set>
</condition>
</progress>
</search>
<option name="list.drilldown">none</option>
</event>
</panel>
<panel depends="$panel2$">
<title>Panel 2</title>
<event>
<search>
<query>index=_internal nothing to found </query>
<earliest>-5m@m</earliest>
<latest>now</latest>
<progress>
<condition match="$job.resultCount$ == 0">
<unset token="panel2"></unset>
</condition>
<condition>
<set token="panel2">true</set>
</condition>
</progress>
</search>
<option name="list.drilldown">none</option>
</event>
</panel>
</row>
</dashboard>
I am looking for this logic in a timechart.
Will this logic work for timechart count ?
|timechart count span=1d partial=false
<row rejects="$hide_panel$">
<panel>
<table>
<search>
<done>
<condition match="'job.resultCount' == 0">
<set token="hide_panel">true</set>
</condition>
<condition>
<unset token="hide_panel"></unset>
</condition>
</done>
<query>| makeresults
| timechart count span=1d partial=f</query>
<earliest>0</earliest>
<latest>now</latest>
</search>
<option name="drilldown">none</option>
<option name="refresh.display">progressbar</option>
</table>
</panel>
</row>
Its working perfectly. Thank you so much for your help.