<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to hide dashboard panel ONLY when search results are zero? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201758#M12655</link>
    <description>&lt;P&gt;At minimum you should have the following in the panel definition if you are running 6.3 or newer.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;panel rejects="$hide_panel$"&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2016 15:16:34 GMT</pubDate>
    <dc:creator>rjthibod</dc:creator>
    <dc:date>2016-11-01T15:16:34Z</dc:date>
    <item>
      <title>How to hide dashboard panel ONLY when search results are zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201754#M12651</link>
      <description>&lt;P&gt;Currently my dashboard panel is hidden even when the search results are displayed.&lt;/P&gt;

&lt;P&gt;I would like my dashboard panel to be hidden ONLY when the search results are zero and my panel should be displayed when the search results are displayed. How can I incorporate code for it?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;chart&amp;gt;
    &amp;lt;title&amp;gt;Average % CPU Utilization&amp;lt;/title&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=eapi_cloud_system_qa  $appname$  sourcetype=monitor OR sourcetype=monitor_log  |rex field=_raw "(EC2-CPUUtilization-Percent)[\w | ^:](?P&amp;amp;lt;ec2cpu&amp;amp;gt;[\w]+)" |stats avg(ec2cpu) as EC2_CPUUtilization&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
      &amp;lt;done&amp;gt;
         &amp;lt;condition match="'job.resultCount' == 0"&amp;gt;
           &amp;lt;set token="hide_panel"&amp;gt;true&amp;lt;/set&amp;gt;
         &amp;lt;/condition&amp;gt;
        &amp;lt;condition&amp;gt;
     &amp;lt;unset token="hide_panel"&amp;gt;&amp;lt;/unset&amp;gt;
  &amp;lt;/condition&amp;gt;
       &amp;lt;/done&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisTitleY.text"&amp;gt;Percent&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisY.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisY2.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisY2.scale"&amp;gt;inherit&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart"&amp;gt;radialGauge&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;connect&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;none&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.layout.splitSeries.allowIndependentYRanges"&amp;gt;0&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.legend.placement"&amp;gt;top&amp;lt;/option&amp;gt;
  &amp;lt;/chart&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Nov 2016 14:51:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201754#M12651</guid>
      <dc:creator>smuppava</dc:creator>
      <dc:date>2016-11-01T14:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide dashboard panel ONLY when search results are zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201755#M12652</link>
      <description>&lt;P&gt;The below code got cut off..which is above the chart&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 14:53:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201755#M12652</guid>
      <dc:creator>smuppava</dc:creator>
      <dc:date>2016-11-01T14:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide dashboard panel ONLY when search results are zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201756#M12653</link>
      <description>&lt;P&gt;Please post the entire panel code, including the start of it (depends parameter?)&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 15:01:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201756#M12653</guid>
      <dc:creator>ehudb</dc:creator>
      <dc:date>2016-11-01T15:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide dashboard panel ONLY when search results are zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201757#M12654</link>
      <description>&lt;P&gt;What version of Splunk Enterprise are you running? It must be at least 6.3 in order to use the features you are trying to use.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 15:15:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201757#M12654</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2016-11-01T15:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide dashboard panel ONLY when search results are zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201758#M12655</link>
      <description>&lt;P&gt;At minimum you should have the following in the panel definition if you are running 6.3 or newer.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;panel rejects="$hide_panel$"&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 15:16:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201758#M12655</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2016-11-01T15:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide dashboard panel ONLY when search results are zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201759#M12656</link>
      <description>&lt;P&gt;**&lt;BR /&gt;
    &lt;PANEL rejects="$hide_panel$"&gt;&lt;BR /&gt;
      &lt;TITLE&gt;CPU&lt;/TITLE&gt;&lt;BR /&gt;
      &lt;CHART&gt;&lt;BR /&gt;
        &lt;TITLE&gt;Average % CPU Utilization&lt;/TITLE&gt;&lt;BR /&gt;
        &lt;SEARCH&gt;&lt;BR /&gt;
          &lt;QUERY&gt;index=eapi_cloud_system_qa  $appname$  sourcetype=monitor OR sourcetype=monitor_log  |rex field=_raw "(EC2-CPUUtilization-Percent)&lt;A href="?P&amp;lt;ec2cpu&amp;gt;%5Bw%5D+" target="_blank"&gt;\w | ^:&lt;/A&gt;" |stats avg(ec2cpu) as EC2_CPUUtilization&lt;/QUERY&gt;&lt;BR /&gt;
          &lt;EARLIEST&gt;$field1.earliest$&lt;/EARLIEST&gt;&lt;BR /&gt;
          &lt;LATEST&gt;$field1.latest$&lt;/LATEST&gt;&lt;BR /&gt;
          &lt;DONE&gt;&lt;BR /&gt;
             &lt;CONDITION match="'job.resultCount' == 0"&gt;&lt;BR /&gt;
               &lt;SET token="hide_panel"&gt;true&lt;/SET&gt;&lt;BR /&gt;
             &lt;/CONDITION&gt;&lt;BR /&gt;
            &lt;CONDITION&gt;&lt;BR /&gt;
         &lt;UNSET token="hide_panel"&gt;&lt;/UNSET&gt;&lt;BR /&gt;
      &lt;/CONDITION&gt;&lt;BR /&gt;
           &lt;/DONE&gt;&lt;BR /&gt;
        &lt;/SEARCH&gt;&lt;BR /&gt;
        ellipsisNone&lt;BR /&gt;
        0&lt;BR /&gt;
        visible&lt;BR /&gt;
        Percent&lt;BR /&gt;
        visible&lt;BR /&gt;
        visible&lt;BR /&gt;
        linear&lt;BR /&gt;
        linear&lt;BR /&gt;
        0&lt;BR /&gt;
        inherit&lt;BR /&gt;
        radialGauge&lt;BR /&gt;
        50&lt;BR /&gt;
        10&lt;BR /&gt;
        area&lt;BR /&gt;
        connect&lt;BR /&gt;
        none&lt;BR /&gt;
        0.01&lt;BR /&gt;
        default&lt;BR /&gt;
        shiny&lt;BR /&gt;
        all&lt;BR /&gt;
        0&lt;BR /&gt;
        0&lt;BR /&gt;
        ellipsisMiddle&lt;BR /&gt;
        top&lt;BR /&gt;
      &lt;/CHART&gt;&lt;BR /&gt;
    &lt;/PANEL&gt;**&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:38:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201759#M12656</guid>
      <dc:creator>smuppava</dc:creator>
      <dc:date>2020-09-29T11:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide dashboard panel ONLY when search results are zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201760#M12657</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I am using Splunk Version 6.3.2&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 15:23:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201760#M12657</guid>
      <dc:creator>smuppava</dc:creator>
      <dc:date>2016-11-01T15:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide dashboard panel ONLY when search results are zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201761#M12658</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Yes, I am using rejects in my code. But, currently my panel is hidden although search results are NOT zero. I want my panel to be hidden only when the search results are "ZERO".&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 15:24:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201761#M12658</guid>
      <dc:creator>smuppava</dc:creator>
      <dc:date>2016-11-01T15:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide dashboard panel ONLY when search results are zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201762#M12659</link>
      <description>&lt;P&gt;I've also tried using the below code too, but doesn't work..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;chart&amp;gt;
    &amp;lt;title&amp;gt;Average % CPU Utilization&amp;lt;/title&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;index=eapi_cloud_system_qa  $appname$  sourcetype=monitor OR sourcetype=monitor_log  |rex field=_raw "(EC2-CPUUtilization-Percent)[\w | ^:](?P&amp;amp;lt;ec2cpu&amp;amp;gt;[\w]+)" |stats avg(ec2cpu) as EC2_CPUUtilization&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
      &amp;lt;progress&amp;gt;
          &amp;lt;condition match="'job.resultCount' == 0"&amp;gt;
             &amp;lt;set token="hide_panel"&amp;gt;true&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition&amp;gt;
           &amp;lt;unset token="hide_panel"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;/condition&amp;gt;
        &amp;lt;/progress&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisTitleY.text"&amp;gt;Percent&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisY.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisY2.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.axisY2.scale"&amp;gt;inherit&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart"&amp;gt;radialGauge&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;connect&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;none&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.layout.splitSeries.allowIndependentYRanges"&amp;gt;0&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
    &amp;lt;option name="charting.legend.placement"&amp;gt;top&amp;lt;/option&amp;gt;
  &amp;lt;/chart&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Nov 2016 15:50:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201762#M12659</guid>
      <dc:creator>smuppava</dc:creator>
      <dc:date>2016-11-01T15:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide dashboard panel ONLY when search results are zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201763#M12660</link>
      <description>&lt;P&gt;That will likely not work. I much rather prefer using either &lt;CODE&gt;&amp;lt;done&amp;gt;&lt;/CODE&gt; or &lt;CODE&gt;&amp;lt;finalized&amp;gt;&lt;/CODE&gt;, not &lt;CODE&gt;&amp;lt;progress&amp;gt;&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;I am sorry but I cannot see anything else obviously wrong. with the code.&lt;/P&gt;

&lt;P&gt;I would be curious to see if it works if you upgrade, but that is not necessarily something you can just do.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 16:11:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201763#M12660</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2016-11-01T16:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide dashboard panel ONLY when search results are zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201764#M12661</link>
      <description>&lt;P&gt;Hi smuppava,&lt;BR /&gt;
You should download the Splunk 6 Dashboard Examples (&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;) and see the "Null Search Swapper" App.&lt;BR /&gt;
It's described how to solve your need.&lt;/P&gt;

&lt;P&gt;Every way, in the following example there are two situation: one with results and one without results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Null Search Swapper&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Search Logic Based on Result Count&amp;lt;/title&amp;gt;
      &amp;lt;input type="radio" token="index_switcher"&amp;gt;
         &amp;lt;label&amp;gt;Choose Index&amp;lt;/label&amp;gt;
         &amp;lt;choice value="index=_internal"&amp;gt;index=_internal&amp;lt;/choice&amp;gt;
         &amp;lt;choice value="index=_null"&amp;gt;index=_null&amp;lt;/choice&amp;gt;
         &amp;lt;initialValue&amp;gt;index=_null&amp;lt;/initialValue&amp;gt;
      &amp;lt;/input&amp;gt;
        &amp;lt;search id="search_logic"&amp;gt;
          &amp;lt;query&amp;gt;$index_switcher$ |  top sourcetype&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-60m@m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;

          &amp;lt;!-- Progress event has access to job properties only --&amp;gt;
          &amp;lt;progress&amp;gt;
            &amp;lt;condition match="$job.resultCount$ == 0"&amp;gt;
              &amp;lt;set token="show_html"&amp;gt;foob&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition&amp;gt;
              &amp;lt;unset token="show_html"/&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/progress&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;chart rejects="$show_html$"&amp;gt;
        &amp;lt;title&amp;gt;Top sourcetypes for index=_internal&amp;lt;/title&amp;gt;
        &amp;lt;search base="search_logic" /&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;bar&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.placement"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
      &amp;lt;html depends="$show_html$"&amp;gt;
         &amp;lt;p style="color:blue;margin-left:30px;font-size:14px"&amp;gt;Search returned no results, so we've hidden the chart!&amp;lt;/p&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 16:39:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201764#M12661</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-01T16:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide dashboard panel ONLY when search results are zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201765#M12662</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Yeah..I've tried the above code. So, what happens is that my panel is hidden no matter the search results appear or not.&lt;BR /&gt;
But, in my specific case, I would want my panel to be hidden ONLY when the search results do NOT display any results.&lt;BR /&gt;
Any suggestions?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 19:06:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201765#M12662</guid>
      <dc:creator>smuppava</dc:creator>
      <dc:date>2016-11-01T19:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide dashboard panel ONLY when search results are zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201766#M12663</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Yes, I've tried done, but still doesn't work in my case. Is there a way to hide the panel when the search doesn't display any results.&lt;BR /&gt;
Any other suggestions. This question is still NOT resolved.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 19:07:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201766#M12663</guid>
      <dc:creator>smuppava</dc:creator>
      <dc:date>2016-11-01T19:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide dashboard panel ONLY when search results are zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201767#M12664</link>
      <description>&lt;P&gt;I still have't found a solution or a way for my code to work. Can I open a case for this issue?&lt;/P&gt;

&lt;P&gt;I need to hide the dashboard panel ONLY when search results are zero. Currently, my dashboard is been hidden although search results are displayed.&lt;/P&gt;

&lt;P&gt;Below is my code..please do take a look..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;title&amp;gt;Average % CPU Utilization&amp;lt;/title&amp;gt;
 &amp;lt;search&amp;gt;
   &amp;lt;query&amp;gt;index=eapi_cloud_system_qa  $appname$  sourcetype=monitor OR sourcetype=monitor_log  |rex field=_raw "(EC2-CPUUtilization-Percent)[\w | ^:](?P&amp;amp;lt;ec2cpu&amp;amp;gt;[\w]+)" |stats avg(ec2cpu) as EC2_CPUUtilization&amp;lt;/query&amp;gt;
   &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
   &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
   &amp;lt;done&amp;gt;
      &amp;lt;condition match="'job.resultCount' == 0"&amp;gt;
        &amp;lt;set token="hide_panel"&amp;gt;true&amp;lt;/set&amp;gt;
      &amp;lt;/condition&amp;gt;
     &amp;lt;condition&amp;gt;
  &amp;lt;unset token="hide_panel"&amp;gt;&amp;lt;/unset&amp;gt;

    &amp;lt;/done&amp;gt;
 &amp;lt;/search&amp;gt;
 &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.axisTitleY.text"&amp;gt;Percent&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.axisY.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.axisY2.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.axisY2.scale"&amp;gt;inherit&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.chart"&amp;gt;radialGauge&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;connect&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;none&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.layout.splitSeries.allowIndependentYRanges"&amp;gt;0&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
 &amp;lt;option name="charting.legend.placement"&amp;gt;top&amp;lt;/option&amp;gt;
 &amp;lt;/chart&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Nov 2016 14:48:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201767#M12664</guid>
      <dc:creator>smuppava</dc:creator>
      <dc:date>2016-11-02T14:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide dashboard panel ONLY when search results are zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201768#M12665</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I tried to run your code in my system, and the logic between  is perfectly fine. &lt;BR /&gt;
The only issue I can see here is in your Search Query. Try to run the query and see if it's really giving you desired Non-zero value.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 02:42:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201768#M12665</guid>
      <dc:creator>ID_SplunkUser</dc:creator>
      <dc:date>2016-11-03T02:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide dashboard panel ONLY when search results are zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201769#M12666</link>
      <description>&lt;P&gt;This is an example to create both the situations (results, no results), you have to see the "progress" tag to understand hot to configure your search.&lt;BR /&gt;
In details:&lt;BR /&gt;
with the &lt;CODE&gt;&amp;lt;condition match="$job.resultCount$ == 0"&amp;gt;&lt;/CODE&gt; you have the situation with no results, in this case you show an html message.&lt;BR /&gt;
Instead of the searches of the example, you have to insert your search and manage the two situations with che $job.resultCount$ token.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 13:20:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201769#M12666</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-03T13:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide dashboard panel ONLY when search results are zero?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201770#M12667</link>
      <description>&lt;P&gt;The provided dashboard example works perfectly fine. What I can see from your code is that neither your panel nor chart option have either &lt;CODE&gt;depends&lt;/CODE&gt; or &lt;CODE&gt;rejects&lt;/CODE&gt; set.&lt;/P&gt;

&lt;P&gt;cheers, MuS &lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 01:18:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-dashboard-panel-ONLY-when-search-results-are-zero/m-p/201770#M12667</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-11-13T01:18:09Z</dc:date>
    </item>
  </channel>
</rss>

