<?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 do you link reports or a search query to a bar chart? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-link-reports-or-a-search-query-to-a-bar-chart/m-p/408229#M26774</link>
    <description>&lt;P&gt;You need to implement a drill-down behaviour using token [ captures the field clicked from bar chart] and then invokes another report/search using that token.&lt;/P&gt;

&lt;P&gt;Pls see examples in &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/Viz/DrilldownIntro"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/Viz/DrilldownIntro&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;There are also examples in dashboard app - &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Feb 2019 12:27:50 GMT</pubDate>
    <dc:creator>lakshman239</dc:creator>
    <dc:date>2019-02-26T12:27:50Z</dc:date>
    <item>
      <title>How do you link reports or a search query to a bar chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-link-reports-or-a-search-query-to-a-bar-chart/m-p/408228#M26773</link>
      <description>&lt;P&gt;I have a bar chart that shows test case status like 60% pass, 40% fail. (that bar chart is generated dynamically based on the values selected in the dropdowns).&lt;/P&gt;

&lt;P&gt;My requirement is that when I click on this graph, it should redirect to either reports or a search query, which would show me the testcase details (like testcase ID, testcase name) that are passed or failed. &lt;/P&gt;

&lt;P&gt;That search query should be dynamically built based on the values selected in the dropdowns.&lt;/P&gt;

&lt;P&gt;Is there any way we can achieve this?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 11:47:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-link-reports-or-a-search-query-to-a-bar-chart/m-p/408228#M26773</guid>
      <dc:creator>gpayal18</dc:creator>
      <dc:date>2019-02-26T11:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do you link reports or a search query to a bar chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-link-reports-or-a-search-query-to-a-bar-chart/m-p/408229#M26774</link>
      <description>&lt;P&gt;You need to implement a drill-down behaviour using token [ captures the field clicked from bar chart] and then invokes another report/search using that token.&lt;/P&gt;

&lt;P&gt;Pls see examples in &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/Viz/DrilldownIntro"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/Viz/DrilldownIntro&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;There are also examples in dashboard app - &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 12:27:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-link-reports-or-a-search-query-to-a-bar-chart/m-p/408229#M26774</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-02-26T12:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do you link reports or a search query to a bar chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-link-reports-or-a-search-query-to-a-bar-chart/m-p/408230#M26775</link>
      <description>&lt;P&gt;Thanks for the response. So, It can only be achieved using tokens. We can't use the temporary variables used while creating the bar chart?&lt;BR /&gt;
For eg: this is my search query to create Bar chart: $source$ "$Category_token$"|convert auto("$BuildTok1$") as Actualtime | &lt;BR /&gt;
convert auto(Requirement) as ExpectedTime  | eval TestStatus=case(Actualtime==0, "NotExecuted", Actualtime &amp;lt;= ExpectedTime ,"Pass", Actualtime &amp;gt; ExpectedTime, "Fail") |stats count by TestStatus&lt;/P&gt;

&lt;P&gt;this search gives me output of 2 columns (teststatus and count) with values below it. So, &lt;BR /&gt;
1. is it possible to use teststatus in drilldowns?&lt;/P&gt;

&lt;P&gt;Or if not teststatus, if I have to use tokens like "$Category_token$", what value would I assign in drilldowns. Becuase their value is not part of the search output.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 07:54:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-link-reports-or-a-search-query-to-a-bar-chart/m-p/408230#M26775</guid>
      <dc:creator>gpayal18</dc:creator>
      <dc:date>2019-02-27T07:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do you link reports or a search query to a bar chart?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-link-reports-or-a-search-query-to-a-bar-chart/m-p/408231#M26776</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Yes, using $row.count$ and $row.TestStatus$ you can invoke the next search (drill-down search)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Feb 2019 11:23:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-link-reports-or-a-search-query-to-a-bar-chart/m-p/408231#M26776</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-02-27T11:23:07Z</dc:date>
    </item>
  </channel>
</rss>

