<?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 to expand table based on click to the column in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-table-based-on-click-to-the-column/m-p/403772#M116832</link>
    <description>&lt;P&gt;Hi @niketnilay,&lt;/P&gt;

&lt;P&gt;Thanks for the great help, the drilldown works perfectly for me. However, by using "fields" (I even tried changing to "table"), the column seem to be sorted as alphabetical order. Is that a way to "un-sort" it?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 21 May 2018 03:41:34 GMT</pubDate>
    <dc:creator>krusovice</dc:creator>
    <dc:date>2018-05-21T03:41:34Z</dc:date>
    <item>
      <title>How to expand table based on click to the column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-table-based-on-click-to-the-column/m-p/403768#M116828</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;

&lt;P&gt;I've generated a table with data as below showing the % of data computed for various type of products.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;date_hour     country     product_A %      product_B %      product_C %
  1              KR         25%               30%              45%
  2              KR         50%               20%              30%
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My requirement now is when user click on column "product_x %", the table should expand with more data on product_x,  example as below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    date_hour     country    product_A %   product_A_volume   product_A_cust    product_B %      product_C %
      1              KR         25%           3300                XYZ                30%              45%
      2              KR         50%           3400                ABC                20%              30%
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is very much similiar to Excel grouping function whereby user can group/ungroup with what they would like to see.&lt;/P&gt;

&lt;P&gt;How can I achieve this requirement?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:34:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-expand-table-based-on-click-to-the-column/m-p/403768#M116828</guid>
      <dc:creator>krusovice</dc:creator>
      <dc:date>2020-09-29T19:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to expand table based on click to the column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-table-based-on-click-to-the-column/m-p/403769#M116829</link>
      <description>&lt;P&gt;@krusovice are the details for drilldown already available from your existing query/existing data or is a new lookup/join is required to pull it from somewhere else?&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 08:45:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-expand-table-based-on-click-to-the-column/m-p/403769#M116829</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-18T08:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to expand table based on click to the column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-table-based-on-click-to-the-column/m-p/403770#M116830</link>
      <description>&lt;P&gt;hi @niketnilay,&lt;/P&gt;

&lt;P&gt;It is already available from the existing query. At first I have shown everything in one table, but due to too many column, user would like to see whether can hide/unhide the column based on what they want to view.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 09:33:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-expand-table-based-on-click-to-the-column/m-p/403770#M116830</guid>
      <dc:creator>krusovice</dc:creator>
      <dc:date>2018-05-18T09:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to expand table based on click to the column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-table-based-on-click-to-the-column/m-p/403771#M116831</link>
      <description>&lt;P&gt;@krusovice, try the following run anywhere dashboard based on sample data. The &lt;CODE&gt;%&lt;/CODE&gt; column that you click will add the &lt;CODE&gt;volume&lt;/CODE&gt; and &lt;CODE&gt;cust&lt;/CODE&gt; columns for that product.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Add Detail Columns to Table&amp;lt;/label&amp;gt;
  &amp;lt;init&amp;gt;
    &amp;lt;set token="tokDetailFields"&amp;gt;fields - product_A_* product_B_* product_C_*&amp;lt;/set&amp;gt;
    &amp;lt;set token="fieldNames"&amp;gt;date_hour, country, "product_A %", "product_B %", "product_C %"&amp;lt;/set&amp;gt;
  &amp;lt;/init&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
|  fields - _time
| eval data="1              KR         25%           3300                XYZ                30%     3300                XYZ         45% 3300                XYZ;2              KR         50%           3400                ABC                20%  3300                XYZ            30% 3300                XYZ;" 
| makemv data delim=";" 
| mvexpand data 
| makemv data delim=" " 
| eval date_hour=mvindex(data,0), country=mvindex(data,1), "product_A %"=mvindex(data,2), product_A_volume=mvindex(data,3), product_A_cust=mvindex(data,4), "product_B %"=mvindex(data,5), product_B_volume=mvindex(data,6), product_B_cust=mvindex(data,7), "product_C %"=mvindex(data,8),product_C_volume=mvindex(data,9), product_C_cust=mvindex(data,10)
| fields - data
| $tokDetailFields$
| table date_hour country "*"&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;20&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;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&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="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;condition field="product_A %"&amp;gt;
            &amp;lt;set token="tokDetailFields"&amp;gt;fields - product_B_*  product_C_*&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition field="product_B %"&amp;gt;
            &amp;lt;set token="tokDetailFields"&amp;gt;fields - product_A_*  product_C_*&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition field="product_C %"&amp;gt;
            &amp;lt;set token="tokDetailFields"&amp;gt;fields - product_A_*  product_B_*&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition&amp;gt;
            &amp;lt;!-- DO not respond to click on other fields--&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;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 May 2018 11:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-expand-table-based-on-click-to-the-column/m-p/403771#M116831</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-18T11:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to expand table based on click to the column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-expand-table-based-on-click-to-the-column/m-p/403772#M116832</link>
      <description>&lt;P&gt;Hi @niketnilay,&lt;/P&gt;

&lt;P&gt;Thanks for the great help, the drilldown works perfectly for me. However, by using "fields" (I even tried changing to "table"), the column seem to be sorted as alphabetical order. Is that a way to "un-sort" it?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 03:41:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-expand-table-based-on-click-to-the-column/m-p/403772#M116832</guid>
      <dc:creator>krusovice</dc:creator>
      <dc:date>2018-05-21T03:41:34Z</dc:date>
    </item>
  </channel>
</rss>

