<?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 a dashboard panel when there are no results displayed? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/613368#M50313</link>
    <description>&lt;P&gt;works for me, thanks. should the token be named the other way around though? ie $show_panel$&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 08:35:11 GMT</pubDate>
    <dc:creator>vince_iw</dc:creator>
    <dc:date>2022-09-16T08:35:11Z</dc:date>
    <item>
      <title>How to hide a dashboard panel when there are no results displayed?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/278705#M17653</link>
      <description>&lt;P&gt;I would like to hide the panel of the dashboard when there are no results displayed. When I incorporate the piece of code from Splunk Answers into my dashboard, the entire panel is hidden although when there are results displayed. I ONLY want my panel to be hidden when there are absolutely no results displayed. Please provide your inputs.&lt;/P&gt;

&lt;P&gt;Thx for your help,&lt;BR /&gt;
Sirisha M&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 15:25:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/278705#M17653</guid>
      <dc:creator>smuppava</dc:creator>
      <dc:date>2016-10-24T15:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a dashboard panel when there are no results displayed?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/278706#M17654</link>
      <description>&lt;P&gt;You can do this via SimpleXML.. Check out this blog&lt;/P&gt;

&lt;P&gt;&lt;A href="http://blogs.splunk.com/2013/11/14/showhide-a-dashboard-panel-based-on-a-search-results/"&gt;http://blogs.splunk.com/2013/11/14/showhide-a-dashboard-panel-based-on-a-search-results/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 15:47:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/278706#M17654</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2016-10-24T15:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a dashboard panel when there are no results displayed?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/278707#M17655</link>
      <description>&lt;P&gt;The blog given below doesn't specify the xml code although it does display the html version of it. Are you able to provide the xml code on how to hide the dashboard panels when the search results displays no results.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 17:11:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/278707#M17655</guid>
      <dc:creator>smuppava</dc:creator>
      <dc:date>2016-10-24T17:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a dashboard panel when there are no results displayed?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/278708#M17656</link>
      <description>&lt;P&gt;This is untested but should work &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel depends="$hide_panel$"&amp;gt;
       &amp;lt;chart&amp;gt;
         &amp;lt;search&amp;gt;
           &amp;lt;query&amp;gt;sourcetype=*&amp;lt;/query&amp;gt;
           &amp;lt;progress&amp;gt;
             &amp;lt;condition match="'job.resultCount' == 0"&amp;gt;
               &amp;lt;unset token="hide_panel"&amp;gt;&amp;lt;/unset&amp;gt;
             &amp;lt;/condition&amp;gt;
             &amp;lt;condition&amp;gt;
               &amp;lt;set token="hide_panel"&amp;gt;true&amp;lt;/set&amp;gt;
             &amp;lt;/condition&amp;gt;
           &amp;lt;/progress&amp;gt;
         &amp;lt;/search&amp;gt;
       &amp;lt;/chart&amp;gt;
     &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Oct 2016 17:18:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/278708#M17656</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2016-10-24T17:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a dashboard panel when there are no results displayed?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/278709#M17657</link>
      <description>&lt;P&gt;Thx a bunch for your help. This worked finally for me!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 17:43:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/278709#M17657</guid>
      <dc:creator>smuppava</dc:creator>
      <dc:date>2016-10-24T17:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a dashboard panel when there are no results displayed?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/278710#M17658</link>
      <description>&lt;P&gt;Great! Can you accept this answer?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 17:57:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/278710#M17658</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2016-10-24T17:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a dashboard panel when there are no results displayed?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/278711#M17659</link>
      <description>&lt;P&gt;Also, how do I hide the panel when the search displays "no results found". Currently, the search text "no results found" is displayed on the panel. How do I hide the panel in this scenario?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 15:01:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/278711#M17659</guid>
      <dc:creator>smuppava</dc:creator>
      <dc:date>2016-10-25T15:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a dashboard panel when there are no results displayed?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/278712#M17660</link>
      <description>&lt;P&gt;Also, can you please help with the below as well?&lt;/P&gt;

&lt;P&gt;How do I hide the panel when there are multiple columns in which time is one of them. By default time is being populated and the other columns display no data. &lt;/P&gt;

&lt;P&gt;In this specific scenario where time, peakthreadcount, totalstartthreadcount columns are displayed within the search results, ONLY time is been populated with data and rest of the two columns display no data data at all. I would like to hide the panel ONLY when time is been populated and rest of the columns display no data.&lt;/P&gt;

&lt;P&gt;How can this be accomplished?&lt;/P&gt;

&lt;P&gt;Thx in advance&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 15:50:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/278712#M17660</guid>
      <dc:creator>smuppava</dc:creator>
      <dc:date>2016-10-25T15:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a dashboard panel when there are no results displayed?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/613368#M50313</link>
      <description>&lt;P&gt;works for me, thanks. should the token be named the other way around though? ie $show_panel$&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:35:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-hide-a-dashboard-panel-when-there-are-no-results/m-p/613368#M50313</guid>
      <dc:creator>vince_iw</dc:creator>
      <dc:date>2022-09-16T08:35:11Z</dc:date>
    </item>
  </channel>
</rss>

