<?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 make panel depend on token value? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/694999#M56917</link>
    <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1" theme="light"&amp;gt;
  &amp;lt;label&amp;gt;Hidden panels&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="panel_tok" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Vendor&amp;lt;/label&amp;gt;
      &amp;lt;choice value="All"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;All&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;All&amp;lt;/initialValue&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;Vendor&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;Vendor&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;| makeresults format=csv data="Vendor
Vendor A
Vendor B"
          |stats c by Vendor&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-7d@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition value="All"&amp;gt;
          &amp;lt;set token="vendorA"&amp;gt;true&amp;lt;/set&amp;gt;
          &amp;lt;set token="vendorB"&amp;gt;true&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="Vendor A"&amp;gt;
          &amp;lt;set token="vendorA"&amp;gt;&amp;lt;/set&amp;gt;
          &amp;lt;unset token="vendorB"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="Vendor B"&amp;gt;
          &amp;lt;unset token="vendorA"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;set token="vendorB"&amp;gt;&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$vendorA$"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;p&amp;gt;Panel A&amp;lt;/p&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$vendorB$"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;p&amp;gt;Panel B&amp;lt;/p&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 01 Aug 2024 16:11:09 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-08-01T16:11:09Z</dc:date>
    <item>
      <title>How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/694990#M56914</link>
      <description>&lt;P&gt;I have header panels on a dashboard. Say this dropdown has a token called tok_panel. Is there a way to make the panels depend on specific values of tok_panel?&lt;/P&gt;&lt;P&gt;i.e., if I select "All" in the dropdown, only panel "All" should be visible instead of *. In my case i'm using Static options for all to display. Others options coming based on |stats c by field name.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-08-01 194923.png" style="width: 424px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/32008i80397D692F66545D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-08-01 194923.png" alt="Screenshot 2024-08-01 194923.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 14:58:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/694990#M56914</guid>
      <dc:creator>Muthu_Vinith</dc:creator>
      <dc:date>2024-08-01T14:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/694996#M56915</link>
      <description>&lt;P&gt;Please share the source of your dashboard in a code block&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 15:32:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/694996#M56915</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-08-01T15:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/694997#M56916</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;input token="panel_tok" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Vendor&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;vendor&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;vendor&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;
|stats c by vendor
&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-7d@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 15:42:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/694997#M56916</guid>
      <dc:creator>Muthu_Vinith</dc:creator>
      <dc:date>2024-08-01T15:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/694999#M56917</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1" theme="light"&amp;gt;
  &amp;lt;label&amp;gt;Hidden panels&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="panel_tok" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Vendor&amp;lt;/label&amp;gt;
      &amp;lt;choice value="All"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;All&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;All&amp;lt;/initialValue&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;Vendor&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;Vendor&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;| makeresults format=csv data="Vendor
Vendor A
Vendor B"
          |stats c by Vendor&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-7d@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition value="All"&amp;gt;
          &amp;lt;set token="vendorA"&amp;gt;true&amp;lt;/set&amp;gt;
          &amp;lt;set token="vendorB"&amp;gt;true&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="Vendor A"&amp;gt;
          &amp;lt;set token="vendorA"&amp;gt;&amp;lt;/set&amp;gt;
          &amp;lt;unset token="vendorB"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="Vendor B"&amp;gt;
          &amp;lt;unset token="vendorA"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;set token="vendorB"&amp;gt;&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$vendorA$"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;p&amp;gt;Panel A&amp;lt;/p&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$vendorB$"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;p&amp;gt;Panel B&amp;lt;/p&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 01 Aug 2024 16:11:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/694999#M56917</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-08-01T16:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/695120#M56923</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;it doesn't work.&lt;BR /&gt;&lt;BR /&gt;I've tried something like this using Appendpipe command. I can see results.&lt;BR /&gt;For eg:&lt;BR /&gt;Vendor-1&amp;nbsp; &amp;nbsp; &amp;nbsp; 10&lt;BR /&gt;Vendor-2&amp;nbsp; &amp;nbsp; &amp;nbsp; 10&amp;nbsp;&lt;BR /&gt;All&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|inputlookup filename.csv
| stats count by Vendor 
| appendpipe 
    [| stats sum(count) as count 
    | eval Vendor="All"]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But when I select &lt;STRONG&gt;All&lt;/STRONG&gt; from drop-down, values are not showing in the single value. However when I select Vendor-1 values are displayed. How to fix this issue?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 18:34:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/695120#M56923</guid>
      <dc:creator>Muthu_Vinith</dc:creator>
      <dc:date>2024-08-02T18:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/695122#M56924</link>
      <description>&lt;P&gt;OK a bit random - why have you used appendpipe?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 18:45:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/695122#M56924</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-08-02T18:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to make panel depend on token value?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/695177#M56927</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; I just tired if we can use appendpipe it will the give the sum of both values. But it does not work. When i select All it should show all instead of star and corresponding values. I'm having only one header.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 2024-08-04 193944.png" style="width: 200px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/32032iDE5F1C43A999782D/image-size/small?v=v2&amp;amp;px=200" role="button" title="Screenshot 2024-08-04 193944.png" alt="Screenshot 2024-08-04 193944.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="123.png" style="width: 72px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/32033i7F29CFF3C393DF79/image-size/small?v=v2&amp;amp;px=200" role="button" title="123.png" alt="123.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2024 14:15:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-make-panel-depend-on-token-value/m-p/695177#M56927</guid>
      <dc:creator>Muthu_Vinith</dc:creator>
      <dc:date>2024-08-04T14:15:47Z</dc:date>
    </item>
  </channel>
</rss>

