<?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: Display data from two rows when using drilldown in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/546193#M37524</link>
    <description>&lt;P&gt;Perfecto&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; That feeling after you work on a problem for days and finally it works !!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just another quick question if you could help?&lt;/P&gt;&lt;P&gt;I have a panel displaying tabular data.&lt;/P&gt;&lt;P&gt;I want to display the top 3 rows from that table in my template block. How do we achieve this?&lt;BR /&gt;&lt;BR /&gt;Let me know if you want me to create a separate thread for this.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Mar 2021 10:50:22 GMT</pubDate>
    <dc:creator>Splunk_noobie</dc:creator>
    <dc:date>2021-03-31T10:50:22Z</dc:date>
    <item>
      <title>Display data from two rows when using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/545685#M37475</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with 5 rows as shown below.&lt;/P&gt;&lt;PRE&gt;Report      Count     Comments
Report 1    22         abc
Report 2    786        def
Report 3    10,037     ghi
Report 4    719&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;jkl&lt;/PRE&gt;&lt;P&gt;When I click on any row, it displays data for that row using the&amp;nbsp;&amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt; in my template like this :&lt;/P&gt;&lt;P&gt;Hi Team,&amp;nbsp;&lt;BR /&gt;According to our splunk logs below are the top reports having high count:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Report: Report1&lt;BR /&gt;Comment: abc&lt;BR /&gt;Count: 22&lt;/P&gt;&lt;P&gt;If you have any questions please feel free to contact us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Support Team&lt;/P&gt;&lt;P&gt;&amp;nbsp;---------END of my display message----------&lt;/P&gt;&lt;P&gt;Now when i click 2nd row(after clicking the first row) I want 2nd row data also to be displayed along with the above results so that the output looks like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Team,&amp;nbsp;&lt;BR /&gt;According to our splunk logs below are the top reports having high count:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Report: Report1&lt;BR /&gt;Comment: abc&lt;BR /&gt;Count: 22&lt;/P&gt;&lt;P&gt;Report: Report2&lt;BR /&gt;Comment: def&lt;BR /&gt;Count: 786&lt;/P&gt;&lt;P&gt;If you have any questions please feel free to contact us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Support Team&lt;/P&gt;&lt;P&gt;&amp;nbsp;---------END of my display message----------&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code i have used :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;row&amp;gt; 
&amp;lt;panel&amp;gt; 
&amp;lt;table&amp;gt; 
&amp;lt;title&amp;gt;click a row for more details&amp;lt;/title&amp;gt; 
&amp;lt;search base="main_search"&amp;gt; &amp;lt;query&amp;gt;| table reportName count comments&amp;lt;/query&amp;gt; 
&amp;lt;/search&amp;gt; 
&amp;lt;option name="count"&amp;gt;10&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="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
 &amp;lt;option name="rowNumbers"&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;$table_fields$&amp;lt;/fields&amp;gt; 
&amp;lt;drilldown&amp;gt; 
&amp;lt;eval token="customer_comment_en"&amp;gt; 
" Report: ".$ReportId$." 
Count: ".$count$." 
Comments: ".$comment$." 
" 
&amp;lt;/eval&amp;gt; 
&amp;lt;set token="drilldown_display"&amp;gt;block&amp;lt;/set&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 depends="$drilldown_display$"&amp;gt; 
&amp;lt;panel&amp;gt; &amp;lt;html&amp;gt; &amp;lt;h1 class="SectionHeader"&amp;gt;Customer Communication&amp;lt;/h1&amp;gt; &amp;lt;div style="float:left; width:calc(95% - 50px);" class="pageInfo"&amp;gt; 
&amp;lt;pre&amp;gt; 
Hi Team, According to our splunk logs below are the top reports having high count: 
$customer_comment_en$ 

If you have any questions please feel free to contact us. 
Regards Support Team 
&amp;lt;/pre&amp;gt; 
&amp;lt;/div&amp;gt; 
&amp;lt;/html&amp;gt; 
&amp;lt;/panel&amp;gt; 
&amp;lt;panel&amp;gt; &lt;/LI-CODE&gt;&lt;P&gt;Basically i want to access data for not just one row, but multiple rows when i click on them and display&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 11:56:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/545685#M37475</guid>
      <dc:creator>Splunk_noobie</dc:creator>
      <dc:date>2021-03-27T11:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Display data from two rows when using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/545688#M37477</link>
      <description>&lt;LI-CODE lang="markup"&gt;&amp;lt;drilldown&amp;gt; 
&amp;lt;eval token="customer_comment_en"&amp;gt;$customer_comment_en$. 
" Report: ".$ReportId$." 
Count: ".$count$." 
Comments: ".$comment$." 
" 
&amp;lt;/eval&amp;gt; 
&amp;lt;set token="drilldown_display"&amp;gt;block&amp;lt;/set&amp;gt; 
&amp;lt;/drilldown&amp;gt; &lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 27 Mar 2021 12:23:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/545688#M37477</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-27T12:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Display data from two rows when using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/546168#M37518</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick turnaround. I guess you got my question wrong. The intention here is&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;gt;&amp;nbsp;&amp;nbsp;jobId :&amp;nbsp; ".$row.jobId$." gives me the result of the row I clicked ( which is easy and common to implement)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;jobId: 7828978761cjk&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; Now when I click another row from the table, I want that result to be added to the previous data&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;jobId: 7828978761cjk&amp;nbsp; (result from the previous click)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;jobId: 9887521348typ (result from current click)&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Is there any&amp;nbsp;".$row2.jobId$." function that I can use?&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 08:15:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/546168#M37518</guid>
      <dc:creator>Splunk_noobie</dc:creator>
      <dc:date>2021-03-31T08:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Display data from two rows when using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/546171#M37519</link>
      <description>&lt;P&gt;I guess you got my answer wrong! The eval in the drilldown takes the current contents of the token and dot-appends the new data&lt;/P&gt;&lt;P&gt;&amp;lt;eval token="&lt;FONT color="#00FF00"&gt;customer_comment_en&lt;/FONT&gt;"&amp;gt;&lt;FONT color="#FF9900"&gt;$customer_comment_en$. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 08:25:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/546171#M37519</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-31T08:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Display data from two rows when using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/546176#M37520</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Got your point. That's a really good solution &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I just tried adding the red text below as suggested by you in my dashboard and it doesn't work. Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;drilldown target="_blank"&amp;gt;&lt;BR /&gt;&amp;lt;eval token="customer_comment_en"&amp;gt;&lt;FONT color="#FF0000"&gt;$customer_comment_en$.&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;"&lt;BR /&gt;jobId : ".$row.jobId$."&lt;BR /&gt;User ID : ".$row.userId$."&lt;BR /&gt;"&lt;BR /&gt;&amp;lt;/eval&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;set token="drilldown_display"&amp;gt;block&amp;lt;/set&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/drilldown&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;row depends="$drilldown_display$"&amp;gt;&lt;BR /&gt;&amp;lt;panel&amp;gt; &amp;lt;!-- Customer comment template with row data --&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;h1 class="SectionHeader"&amp;gt;Case Updation Template &amp;lt;/h1&amp;gt;&lt;BR /&gt;&amp;lt;div style="float:left; width:calc(95% - 100px);" class="pageInfo"&amp;gt;&lt;BR /&gt;&amp;lt;pre&amp;gt;&lt;BR /&gt;Hi Team,&lt;/P&gt;&lt;P&gt;Please check the below data from our query:&amp;nbsp;&lt;BR /&gt;$customer_comment_en$&lt;/P&gt;&lt;P&gt;&amp;lt;/pre&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/row&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 08:45:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/546176#M37520</guid>
      <dc:creator>Splunk_noobie</dc:creator>
      <dc:date>2021-03-31T08:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Display data from two rows when using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/546187#M37521</link>
      <description>&lt;P&gt;OK it looks like we need to deal with the situation where the token is null&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;eval token="customer_comment_en"&amp;gt;if(isnull($customer_comment_en$),"
jobId : ".$row.jobId$."
User ID : ".$row.userId$."
",$customer_comment_en$. 
"
jobId : ".$row.jobId$."
User ID : ".$row.userId$."
")
&amp;lt;/eval&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 Mar 2021 10:01:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/546187#M37521</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-31T10:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Display data from two rows when using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/546191#M37522</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Yep. Agree with logic. It's a good one,&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the only output in my template block is :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Hi Team,

Please check the below data from our query: 
$customer_comment_en$ &lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 Mar 2021 10:18:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/546191#M37522</guid>
      <dc:creator>Splunk_noobie</dc:creator>
      <dc:date>2021-03-31T10:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Display data from two rows when using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/546192#M37523</link>
      <description>&lt;P&gt;Try removing the extra newline after $customer_comment_en$.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;eval token="customer_comment_en"&amp;gt;if(isnull($customer_comment_en$),"
jobId : ".$row.jobId$."
User ID : ".$row.userId$."
",$customer_comment_en$."
jobId : ".$row.jobId$."
User ID : ".$row.userId$."
")
&amp;lt;/eval&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 Mar 2021 10:34:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/546192#M37523</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-31T10:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Display data from two rows when using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/546193#M37524</link>
      <description>&lt;P&gt;Perfecto&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; That feeling after you work on a problem for days and finally it works !!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just another quick question if you could help?&lt;/P&gt;&lt;P&gt;I have a panel displaying tabular data.&lt;/P&gt;&lt;P&gt;I want to display the top 3 rows from that table in my template block. How do we achieve this?&lt;BR /&gt;&lt;BR /&gt;Let me know if you want me to create a separate thread for this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 10:50:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/546193#M37524</guid>
      <dc:creator>Splunk_noobie</dc:creator>
      <dc:date>2021-03-31T10:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Display data from two rows when using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/546195#M37525</link>
      <description>&lt;P&gt;I think you need a separate thread for this, partly so that you (and others) will know when there is a solution.&lt;/P&gt;&lt;P&gt;However, what is wrong with the table visualisation with the query limited to 3 results (head 3)?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 11:27:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-data-from-two-rows-when-using-drilldown/m-p/546195#M37525</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-31T11:27:58Z</dc:date>
    </item>
  </channel>
</rss>

