<?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 Drilldown pie chart to non visible column in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-pie-chart-to-non-visible-column/m-p/376371#M24648</link>
    <description>&lt;P&gt;I have a pie chart with Name/Count, but for each name there is a key which then refers to a row in a KV store for that name.&lt;/P&gt;

&lt;P&gt;So, I have a table with&lt;/P&gt;

&lt;P&gt;Name, Count, key&lt;/P&gt;

&lt;P&gt;The pie chart displays as expected, but when I click on the chart segment for a given name, I an trying to capture the token&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;set token="key"&amp;gt;$row.key$&amp;lt;/set&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, that always returns $row.key$, so won't give me the actual column content. Using $row.Name$ or $row.Count$ gives me the data in the table. &lt;/P&gt;

&lt;P&gt;I can't find if this is supported or not.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2019 06:00:08 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2019-07-11T06:00:08Z</dc:date>
    <item>
      <title>Drilldown pie chart to non visible column</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-pie-chart-to-non-visible-column/m-p/376371#M24648</link>
      <description>&lt;P&gt;I have a pie chart with Name/Count, but for each name there is a key which then refers to a row in a KV store for that name.&lt;/P&gt;

&lt;P&gt;So, I have a table with&lt;/P&gt;

&lt;P&gt;Name, Count, key&lt;/P&gt;

&lt;P&gt;The pie chart displays as expected, but when I click on the chart segment for a given name, I an trying to capture the token&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;set token="key"&amp;gt;$row.key$&amp;lt;/set&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, that always returns $row.key$, so won't give me the actual column content. Using $row.Name$ or $row.Count$ gives me the data in the table. &lt;/P&gt;

&lt;P&gt;I can't find if this is supported or not.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 06:00:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-pie-chart-to-non-visible-column/m-p/376371#M24648</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2019-07-11T06:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown pie chart to non visible column</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-pie-chart-to-non-visible-column/m-p/376372#M24649</link>
      <description>&lt;P&gt;In a pie chart you don't have a row. So for either key or value extraction to a token you'd need:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;set token="key"&amp;gt;$click.value$&amp;lt;/set&amp;gt;
      &amp;lt;set token="value"&amp;gt;$click.value2$&amp;lt;/set&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jul 2019 06:22:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-pie-chart-to-non-visible-column/m-p/376372#M24649</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2019-07-11T06:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown pie chart to non visible column</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-pie-chart-to-non-visible-column/m-p/376373#M24650</link>
      <description>&lt;P&gt;Technically you do have rows, just that the column dimension is only drawn from column 1 (entity) and column 2 (count). You can in practice have as many columns in the table the pie chart is drawn from and the click values $row.col1$ and $row.col2$ work, but sadly $row.col3$ does not.&lt;/P&gt;

&lt;P&gt;That's a pain, as in event tables, you can include hidden fields by using the fields element, but this doesn't work in charts . &lt;/P&gt;

&lt;P&gt;Just wondered if there was a way to solve this, as it makes the drilldown search have to repeat with a where clause, but even then it's not safe, as the where works on click.value, not the key needed and that's not unique.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 06:58:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-pie-chart-to-non-visible-column/m-p/376373#M24650</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2019-07-11T06:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown pie chart to non visible column</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-pie-chart-to-non-visible-column/m-p/563361#M46368</link>
      <description>&lt;P&gt;We have the same problem. We store a list of items in a row in the search that is used to create a pie chart. The end of the search looks as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| streamstats count as Count, values(ITEM_ID) as ITEM_list by DEPT
| dedup DEPT sortby -Count
| table DEPT, Count, ITEM_list &lt;/LI-CODE&gt;&lt;P&gt;The pie chart draws correctly, using DEPT as fields and Count as counts for the chart. In the drilldown, we set:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;set token="ITEM_list"&amp;gt;$row.ITEM_list$&amp;lt;/set&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;The idea is to use the ITEM_list token in a subsequent search. This technique works perfectly with bar charts, but the drilldown for the pie chart does not set the token as required. I think this is a functionality that does not work in the pie chart.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 06:31:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-pie-chart-to-non-visible-column/m-p/563361#M46368</guid>
      <dc:creator>BernardEAI</dc:creator>
      <dc:date>2021-08-16T06:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown pie chart to non visible column</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-pie-chart-to-non-visible-column/m-p/563364#M46369</link>
      <description>&lt;P&gt;Yes, pie chart does not support $row.X$ drilldown tokens &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 07:12:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-pie-chart-to-non-visible-column/m-p/563364#M46369</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-08-16T07:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown pie chart to non visible column</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-pie-chart-to-non-visible-column/m-p/564185#M46404</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;/P&gt;&lt;P&gt;Yes, the row is not working with a pie-chart. Can you check the below code to implement your use case?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;States&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;title&amp;gt;States Chart&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| inputlookup geo_attr_us_states | stats count by state_name&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&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="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;all&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;set token="my_token"&amp;gt;$click.value$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/chart&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="$my_token$"&amp;gt;
        &amp;lt;title&amp;gt;States Details&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| inputlookup geo_attr_us_states where state_name="$my_token$" &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&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="count"&amp;gt;5&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you find my solution useful, an upvote would be appreciated.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Aug 2021 10:12:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drilldown-pie-chart-to-non-visible-column/m-p/564185#M46404</guid>
      <dc:creator>jhanvidattani</dc:creator>
      <dc:date>2021-08-21T10:12:40Z</dc:date>
    </item>
  </channel>
</rss>

