<?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: Show/Hide a table depending on a column value from another table in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536287#M36598</link>
    <description>&lt;P&gt;i added this portion to my simple xml file in the first table&lt;/P&gt;&lt;PRE&gt;&amp;lt;drilldown&amp;gt;
          &amp;lt;condition match="match($row.val$, &amp;amp;quot;Fail&amp;amp;quot;)"&amp;gt;
            &amp;lt;set token="tkn_value"&amp;gt;$row.val$&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition&amp;gt;
            &amp;lt;unset token="tkn_value" /&amp;gt;
          &amp;lt;/condition&amp;gt;
&amp;lt;/drilldown&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; and then&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; &amp;lt;table depends="$tkn_value$"&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;the above portion in the second table. but the second table always remains hidden for some reason no matter what the value is.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:- i changed the row.val as per my table requirement still its the same result.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2021 06:20:32 GMT</pubDate>
    <dc:creator>sdhawanx</dc:creator>
    <dc:date>2021-01-19T06:20:32Z</dc:date>
    <item>
      <title>Show/Hide a table depending on a column value from another table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536176#M36582</link>
      <description>&lt;P&gt;I have table with just 2 columns 'Name' and 'Value'. one of the rows has the 'Value' as 'Fail', 'Pass' or 'NA'&lt;/P&gt;&lt;P&gt;I have another table, which has a bunch of related data. I have 2 options for the second table:-&lt;/P&gt;&lt;P&gt;1. I want the query for table 2 to run only when&amp;nbsp;the 'Value' in the first table is 'Fail' and the table 2 to remain hidden&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;2. but I want that table to be only displayed when the 'Value' in the first table is 'Fail'&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 08:55:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536176#M36582</guid>
      <dc:creator>sdhawanx</dc:creator>
      <dc:date>2021-01-18T08:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Hide a table depending on a column value from another table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536184#M36583</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227545"&gt;@sdhawanx&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this xml?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Table Depend&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;First Table&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval val="Fail,Pass,NA", val=split(val,",") | mvexpand val&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;condition match="match($row.val$, &amp;amp;quot;Fail&amp;amp;quot;)"&amp;gt;
            &amp;lt;set token="tkn_value"&amp;gt;$row.val$&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition&amp;gt;
            &amp;lt;unset token="tkn_value" /&amp;gt;
          &amp;lt;/condition&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table depends="$tkn_value$"&amp;gt;
        &amp;lt;title&amp;gt;Second Table with value $tkn_value$&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval val="Fail,Pass,NA", val=split(val,",") | mvexpand val | where val="$tkn_value$"&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&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;option name="refresh.display"&amp;gt;progressbar&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;</description>
      <pubDate>Mon, 18 Jan 2021 09:59:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536184#M36583</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-01-18T09:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Hide a table depending on a column value from another table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536287#M36598</link>
      <description>&lt;P&gt;i added this portion to my simple xml file in the first table&lt;/P&gt;&lt;PRE&gt;&amp;lt;drilldown&amp;gt;
          &amp;lt;condition match="match($row.val$, &amp;amp;quot;Fail&amp;amp;quot;)"&amp;gt;
            &amp;lt;set token="tkn_value"&amp;gt;$row.val$&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition&amp;gt;
            &amp;lt;unset token="tkn_value" /&amp;gt;
          &amp;lt;/condition&amp;gt;
&amp;lt;/drilldown&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; and then&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; &amp;lt;table depends="$tkn_value$"&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;the above portion in the second table. but the second table always remains hidden for some reason no matter what the value is.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:- i changed the row.val as per my table requirement still its the same result.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 06:20:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536287#M36598</guid>
      <dc:creator>sdhawanx</dc:creator>
      <dc:date>2021-01-19T06:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Hide a table depending on a column value from another table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536290#M36600</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227545"&gt;@sdhawanx&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible for you to share sample XML of both table.. replace search with dummy search.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 07:07:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536290#M36600</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-01-19T07:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Hide a table depending on a column value from another table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536292#M36601</link>
      <description>&lt;P&gt;Table 1&lt;BR /&gt;&amp;lt;table id="Table_1"&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;Table 1&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;search id="Table_1"&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;| makeresults | eval val="Fail,Pass,NA", val=split(val,",") | mvexpand val&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;earliest&amp;gt;$earliest$&amp;lt;/earliest&amp;gt;&lt;BR /&gt;&amp;lt;latest&amp;gt;$latest$&amp;lt;/latest&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;drilldown&amp;gt;&lt;BR /&gt;&amp;lt;condition match="match($row.val$, &amp;amp;quot;Fail&amp;amp;quot;)"&amp;gt;&lt;BR /&gt;&amp;lt;set token="tkn_value"&amp;gt;$row.val$&amp;lt;/set&amp;gt;&lt;BR /&gt;&amp;lt;/condition&amp;gt;&lt;BR /&gt;&amp;lt;condition&amp;gt;&lt;BR /&gt;&amp;lt;unset token="tkn_value" /&amp;gt;&lt;BR /&gt;&amp;lt;/condition&amp;gt;&lt;BR /&gt;&amp;lt;/drilldown&amp;gt;&lt;BR /&gt;&amp;lt;format type="color" field="Log"&amp;gt;&lt;BR /&gt;&amp;lt;colorPalette type="list"&amp;gt;[#FFFFFF,#DC4E41]&amp;lt;/colorPalette&amp;gt;&lt;BR /&gt;&amp;lt;scale type="threshold"&amp;gt;1&amp;lt;/scale&amp;gt;&lt;BR /&gt;&amp;lt;/format&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;&amp;lt;table id="Table_2" depends="$tkn_value$"&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;Table 2&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;search id="base_search_35_1"&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;&lt;BR /&gt;| makeresults | eval val="Fail,Pass,NA", val=split(val,",") | mvexpand val | where val="$tkn_value$" &amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 08:53:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536292#M36601</guid>
      <dc:creator>sdhawanx</dc:creator>
      <dc:date>2021-01-19T08:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Hide a table depending on a column value from another table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536309#M36606</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227545"&gt;@sdhawanx&lt;/a&gt;&amp;nbsp; Your code looks good and working in my instance also. Anything else you did with table drill down?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 10:24:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536309#M36606</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-01-19T10:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Hide a table depending on a column value from another table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536311#M36607</link>
      <description>&lt;P&gt;there is nothing else in the code apart from the changed query&amp;nbsp;&lt;/P&gt;&lt;P&gt;for the second table i used only this part&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| makeresults | eval val="Fail,Pass,NA", val=split(val,",") | mvexpand val&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and removed the last pipe. this is the only difference. But as per my understanding the code should still work fine. but the table remains hidden nonetheless.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i created a sample code on my local splunk and copied your code as is and it seemed to work just fine but when transferring it to the main code its not working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 10:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536311#M36607</guid>
      <dc:creator>sdhawanx</dc:creator>
      <dc:date>2021-01-19T10:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Hide a table depending on a column value from another table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536329#M36608</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227545"&gt;@sdhawanx&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please check the token value by printing it? Just do below changes.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;drilldown&amp;gt;
    &amp;lt;condition match="match($row.value$, &amp;amp;quot;Fail&amp;amp;quot;)"&amp;gt;
      &amp;lt;set token="tkn_value"&amp;gt;$row.value$&amp;lt;/set&amp;gt;
      &amp;lt;unset token="tkn_value_tmp" /&amp;gt;
    &amp;lt;/condition&amp;gt;
    &amp;lt;condition&amp;gt;
      &amp;lt;unset token="tkn_value" /&amp;gt;
      &amp;lt;set token="tkn_value_tmp"&amp;gt;$row.value$ Negative&amp;lt;/set&amp;gt;
    &amp;lt;/condition&amp;gt;
  &amp;lt;/drilldown&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;$tkn_value$&amp;lt;br /&amp;gt;
      $tkn_value_tmp$&amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just observe the behaviour of both token. It will help you to debug more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 13:35:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536329#M36608</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-01-19T13:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Hide a table depending on a column value from another table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536989#M36702</link>
      <description>&lt;P&gt;I will test this once i return to work. Thanks for the prompt response. Very much appreciated&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 06:57:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/536989#M36702</guid>
      <dc:creator>sdhawanx</dc:creator>
      <dc:date>2021-01-25T06:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Hide a table depending on a column value from another table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/699958#M57399</link>
      <description>&lt;P&gt;I was looking for a solution to show / hide tables on my dashboard and the set / unset token were very useful to me. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 14:25:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-Hide-a-table-depending-on-a-column-value-from-another-table/m-p/699958#M57399</guid>
      <dc:creator>nsaveljevas</dc:creator>
      <dc:date>2024-09-24T14:25:06Z</dc:date>
    </item>
  </channel>
</rss>

