<?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: Drilldown- set 2 token based on one click(row.values and row-1.values) in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-set-2-token-based-on-one-click-row-values-and-row-1/m-p/554157#M38479</link>
    <description>&lt;P&gt;OK, so what do you want to be possible from drilldown in the line chart?&lt;/P&gt;&lt;P&gt;What would you intend to show on the X/Y axis from that chart relating to these tags?&lt;/P&gt;&lt;P&gt;The &amp;lt;fields&amp;gt; statement cannot be used in a chart like it is in table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jun 2021 22:34:24 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2021-06-02T22:34:24Z</dc:date>
    <item>
      <title>Drilldown- set 2 token based on one click(row.values and row-1.values)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-set-2-token-based-on-one-click-row-values-and-row-1/m-p/553999#M38460</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm finding&amp;nbsp; a way to set 2 token based on one click.&lt;BR /&gt;&lt;BR /&gt;something like&amp;nbsp;&lt;BR /&gt;&amp;lt;drilldown&amp;gt;&lt;BR /&gt;&amp;lt;set token="tag_click"&amp;gt;$row.tag$&amp;lt;/set&amp;gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&amp;lt;set token="tag_click2"&amp;gt;$row-1.tag$&amp;lt;/set&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&amp;lt;/drilldown&amp;gt;&lt;/P&gt;&lt;P&gt;my statistics table.....&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;tag&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;score&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;tag_a&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;55&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;tag_b&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="24px"&gt;tag_c&lt;/TD&gt;&lt;TD width="50%" height="24px"&gt;90&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired output:&lt;BR /&gt;1)when i click on tag_c, $tag_click$= tag_c,&amp;nbsp; &amp;nbsp;$tag_click2$= tag_b&lt;BR /&gt;2)when i click on tag_b, $tag_click$= tag_b,&amp;nbsp; &amp;nbsp;$tag_click2$= tag_a&lt;BR /&gt;3)when i click on tag_a, $tag_click$= tag_a,&amp;nbsp;$tag_click2$= ""&lt;BR /&gt;&lt;BR /&gt;Is there a way to do this?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 02:28:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-set-2-token-based-on-one-click-row-values-and-row-1/m-p/553999#M38460</guid>
      <dc:creator>yuming1127</dc:creator>
      <dc:date>2021-06-02T02:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown- set 2 token based on one click(row.values and row-1.values)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-set-2-token-based-on-one-click-row-values-and-row-1/m-p/554006#M38462</link>
      <description>&lt;P&gt;Save this dashboard and take a look at the XML - it's using streamstats and the &amp;lt;fields&amp;gt; control to limit what's shown.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;clickprevrow&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;h1&amp;gt;Click any row and a new panel will show you the tag from the clicked row and the tag from the previous row&amp;lt;/h1&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&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults 
| eval _raw="tag	score
tag_a	55
tag_b	80
tag_c	90"
| multikv forceheader=1
| table tag score
| streamstats window=1 current=f first(tag) as prev_tag
          &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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;fields&amp;gt;tag score&amp;lt;/fields&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="tag_click_current_row"&amp;gt;$row.tag$&amp;lt;/set&amp;gt;
          &amp;lt;eval token="tag_click_previous_row"&amp;gt;if(isnull($row.prev_tag$),"Clicked on first row", $row.prev_tag$)&amp;lt;/eval&amp;gt;
          &amp;lt;eval token="tag_click_previous_row_colour"&amp;gt;if(isnull($row.prev_tag$),"red", "green")&amp;lt;/eval&amp;gt;
          &amp;lt;set token="last_click"&amp;gt;Tag clicked&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel depends="$last_click$"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;h1&amp;gt;Tag clicked&amp;lt;/h1&amp;gt;
        &amp;lt;h2&amp;gt;Tag value clicked &amp;lt;b style="color:blue"&amp;gt;$tag_click_current_row$&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;
        &amp;lt;h2&amp;gt;Tag value from previous row &amp;lt;b style="color:$tag_click_previous_row_colour$"&amp;gt;$tag_click_previous_row$&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 02 Jun 2021 03:24:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-set-2-token-based-on-one-click-row-values-and-row-1/m-p/554006#M38462</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-06-02T03:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown- set 2 token based on one click(row.values and row-1.values)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-set-2-token-based-on-one-click-row-values-and-row-1/m-p/554075#M38472</link>
      <description>&lt;P&gt;Great, thanks for the solution, appreciate that&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 09:23:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-set-2-token-based-on-one-click-row-values-and-row-1/m-p/554075#M38472</guid>
      <dc:creator>yuming1127</dc:creator>
      <dc:date>2021-06-02T09:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown- set 2 token based on one click(row.values and row-1.values)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-set-2-token-based-on-one-click-row-values-and-row-1/m-p/554077#M38473</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;One question, how do i unshow&amp;nbsp; the prev_tag when i display the table as line chart.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yuming1127_0-1622626568672.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14433i8118CAB9194FD13D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yuming1127_0-1622626568672.png" alt="yuming1127_0-1622626568672.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using syntax (&amp;lt;fields&amp;gt;["tag","score"]&amp;lt;/fields&amp;gt;) do hide the prev_tag as table but actually i plan to display the table as line chart.&lt;/P&gt;&lt;P&gt;The&lt;FONT color="#008000"&gt;&lt;STRONG&gt; drilldown do function perfectly&lt;/STRONG&gt; &lt;/FONT&gt;just if there any &lt;FONT color="#FF0000"&gt;method to remove prev_tag when display it as line chart&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 09:40:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-set-2-token-based-on-one-click-row-values-and-row-1/m-p/554077#M38473</guid>
      <dc:creator>yuming1127</dc:creator>
      <dc:date>2021-06-02T09:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown- set 2 token based on one click(row.values and row-1.values)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-set-2-token-based-on-one-click-row-values-and-row-1/m-p/554157#M38479</link>
      <description>&lt;P&gt;OK, so what do you want to be possible from drilldown in the line chart?&lt;/P&gt;&lt;P&gt;What would you intend to show on the X/Y axis from that chart relating to these tags?&lt;/P&gt;&lt;P&gt;The &amp;lt;fields&amp;gt; statement cannot be used in a chart like it is in table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 22:34:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-set-2-token-based-on-one-click-row-values-and-row-1/m-p/554157#M38479</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-06-02T22:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown- set 2 token based on one click(row.values and row-1.values)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-set-2-token-based-on-one-click-row-values-and-row-1/m-p/554162#M38480</link>
      <description>&lt;P&gt;Nevermind, I thinks it's okay, just asking if there is a way to hide the prev_tag from line chart. If no, its still worked perfectly when i click on the point(line chart) it do 'token' the&amp;nbsp;"tag_click_current_row" and "tag_click_previous_row"&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 00:31:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-set-2-token-based-on-one-click-row-values-and-row-1/m-p/554162#M38480</guid>
      <dc:creator>yuming1127</dc:creator>
      <dc:date>2021-06-03T00:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown- set 2 token based on one click(row.values and row-1.values)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-set-2-token-based-on-one-click-row-values-and-row-1/m-p/554164#M38481</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233446"&gt;@yuming1127&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would probably be possible to 'hide' the legend with CSS, if you know how to use CSS, then you should look at using the&amp;nbsp;&lt;SPAN&gt;g.highcharts-legend-item&lt;/SPAN&gt; element to disable the display for that field name prev_tag&lt;/P&gt;&lt;P&gt;I am not sure how to do that, but perhaps open a new question and ask there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Jun 2021 00:47:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-set-2-token-based-on-one-click-row-values-and-row-1/m-p/554164#M38481</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-06-03T00:47:46Z</dc:date>
    </item>
  </channel>
</rss>

