<?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 Display and hide column based on dropdown value in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-and-hide-column-based-on-dropdown-value/m-p/560510#M38983</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a dropdown field that is used to filter the results of a pivot table. Is there a way that I can show and hide a column in the pivot table?&lt;/P&gt;&lt;P&gt;For instance, say the token of the dropdown field is 'select_field_1'&lt;/P&gt;&lt;P&gt;('version' and 'daysRemaining' are columns)&lt;/P&gt;&lt;P&gt;Id imagine there is a conditional command where you can do if ($select_field_1|s$=certificate,show daysRemaining hide version)&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jul 2021 18:29:18 GMT</pubDate>
    <dc:creator>shakSplunk</dc:creator>
    <dc:date>2021-07-22T18:29:18Z</dc:date>
    <item>
      <title>Display and hide column based on dropdown value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-and-hide-column-based-on-dropdown-value/m-p/560510#M38983</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a dropdown field that is used to filter the results of a pivot table. Is there a way that I can show and hide a column in the pivot table?&lt;/P&gt;&lt;P&gt;For instance, say the token of the dropdown field is 'select_field_1'&lt;/P&gt;&lt;P&gt;('version' and 'daysRemaining' are columns)&lt;/P&gt;&lt;P&gt;Id imagine there is a conditional command where you can do if ($select_field_1|s$=certificate,show daysRemaining hide version)&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 18:29:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-and-hide-column-based-on-dropdown-value/m-p/560510#M38983</guid>
      <dc:creator>shakSplunk</dc:creator>
      <dc:date>2021-07-22T18:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Display and hide column based on dropdown value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-and-hide-column-based-on-dropdown-value/m-p/560709#M39000</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234998"&gt;@shakSplunk&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you try the below solution?&lt;BR /&gt;&lt;BR /&gt;Here based on input value we can give the fields to be dispalyed.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Test Dashboard&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="time_token" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Time Range&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-4h@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown"&amp;gt;
      &amp;lt;label&amp;gt;Select Sourcetype&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;sourcetype&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;sourcetype&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index="_internal" | dedup  sourcetype | table sourcetype&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;$time_token.earliest$&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;$time_token.latest$&amp;lt;/latest&amp;gt;
      &amp;lt;/search&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;All&amp;lt;/initialValue&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition match="$value$==&amp;amp;quot;mongod&amp;amp;quot; OR $value$==&amp;amp;quot;scheduler&amp;amp;quot;"&amp;gt;
          &amp;lt;set token="display_fields"&amp;gt;| table source, sourcetype, host, date_hour, date_mday&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition match="$value$==&amp;amp;quot;splunkd&amp;amp;quot; OR $value$==&amp;amp;quot;splunkd_access&amp;amp;quot;"&amp;gt;
          &amp;lt;set token="display_fields"&amp;gt;| table source, sourcetype, host, date_minute, date_month&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition match="$value$==&amp;amp;quot;*&amp;amp;quot;"&amp;gt;
          &amp;lt;set token="display_fields"&amp;gt;| table source, sourcetype, host&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&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Fields&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="_internal" | dedup source, sourcetype $display_fields$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$time_token.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$time_token.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;below solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jul 2021 12:31:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-and-hide-column-based-on-dropdown-value/m-p/560709#M39000</guid>
      <dc:creator>jhanvidattani</dc:creator>
      <dc:date>2021-07-25T12:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Display and hide column based on dropdown value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-and-hide-column-based-on-dropdown-value/m-p/666188#M54481</link>
      <description>&lt;P&gt;Tabling works, but that's not enough if you need to carry along hidden values for Drilldowns. Tokens "kind of" work with the &amp;lt;fields&amp;gt; tag, but they don't seem to update when the token changes. Classic Splunk W.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 15:47:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-and-hide-column-based-on-dropdown-value/m-p/666188#M54481</guid>
      <dc:creator>spunk_enthusias</dc:creator>
      <dc:date>2023-10-25T15:47:45Z</dc:date>
    </item>
  </channel>
</rss>

