<?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: drill down for cell in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304551#M19403</link>
    <description>&lt;P&gt; Warning on    Invalid child="eval" is not allowed in node="conditional-drilldown" &lt;/P&gt;

&lt;P&gt;Am already using conditional drill down for that particular field so when am trying to add eval its giving me warning&lt;/P&gt;</description>
    <pubDate>Mon, 27 Nov 2017 17:33:12 GMT</pubDate>
    <dc:creator>surekhasplunk</dc:creator>
    <dc:date>2017-11-27T17:33:12Z</dc:date>
    <item>
      <title>drill down for cell</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304547#M19399</link>
      <description>&lt;P&gt;Currenlty i have drill down active for 2 of my columns/cell from table of panels which is working fine taking row.fieldname as an argument which i am mapping to another lookup file to get the drilldown give the required results. &lt;/P&gt;

&lt;P&gt;Now i have a total filed as well for those cells. So when i drilldown from the total cell value it gives me error since the mapping doesn't work when i have more than 1 value coming for a particular variable field. &lt;/P&gt;

&lt;P&gt;Is there anyways i can disable drilldown for that particular filed or change my query only for that particular field where the corresponding row  value is total &lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 10:38:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304547#M19399</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2017-11-27T10:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: drill down for cell</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304548#M19400</link>
      <description>&lt;P&gt;@surekhasplunk, I am not sure if I understand what you mean by &lt;CODE&gt;mapping doesn't work when i have more than 1 value coming for a particular variable field&lt;/CODE&gt;. What are the multiple values and how are multiple values being set?&lt;/P&gt;

&lt;P&gt;Based on the description seems like you need to code &lt;CODE&gt;condition&lt;/CODE&gt; block with field names using field="Total", field="field1", field="field1" etc. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens#Define_tokens_for_conditional_operations_with_the_.3Cdrilldown.3E_element"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens#Define_tokens_for_conditional_operations_with_the_.3Cdrilldown.3E_element&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;drilldown&amp;gt;
      &amp;lt;condition field="Total"&amp;gt;
        &amp;lt;set token="tokTotal"&amp;gt;$row.fieldName$&amp;lt;/set&amp;gt;
        ...
      &amp;lt;/condition&amp;gt;
    &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Nov 2017 10:47:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304548#M19400</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-11-27T10:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: drill down for cell</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304549#M19401</link>
      <description>&lt;P&gt;example i have results something like below. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Department     Permanent       Contract     Both
computers       6                   4             10
civil                    9                  1              10
mechanical      8                  5               13
Total                23                 10              33
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now i am taking deparment names in row.department variable and then passing it for lookup to another file and getting results depending on the department name in the drilldown feature. &lt;BR /&gt;
But when someone clicks on total value 23 or 10 then its failing coz its not able to search the department name in the drilldown lookup file. &lt;/P&gt;

&lt;P&gt;How to deal with this scenario&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 14:24:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304549#M19401</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2017-11-27T14:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: drill down for cell</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304550#M19402</link>
      <description>&lt;P&gt;Following are your some of your options:&lt;BR /&gt;
&lt;STRONG&gt;1) Enable the Total rows in Table Summary (Splunk 6.6. onward)&lt;/STRONG&gt; :&lt;BR /&gt;
Using Edit Panel option in Splunk UI through &lt;CODE&gt;Format Visualization &amp;gt; Summary &amp;gt; Total = Yes&lt;/CODE&gt; or following Simple XML change:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="totalsRow"&amp;gt;true&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;*&lt;EM&gt;2) Use eval to set token on Drilldown: *&lt;/EM&gt;&lt;BR /&gt;
Use eval with case to set the token only when clicked value is not &lt;CODE&gt;Department&lt;/CODE&gt; either through &lt;CODE&gt;$click.value$&lt;/CODE&gt; (since Department is your left most column), or through &lt;CODE&gt;$row.Department$&lt;/CODE&gt;. When clicked value is &lt;CODE&gt;Total&lt;/CODE&gt;, token will be &lt;CODE&gt;null&lt;/CODE&gt;, you can also add a condition to set it to some default value from your lookup since drilldown will still occur.&lt;/P&gt;

&lt;P&gt;*&lt;EM&gt;3) Use Simple XML JS Extension with Splunk JS Stack to prevent setting of drilldown token if clicked row's department value is Total: *&lt;/EM&gt;&lt;BR /&gt;
I have not created an example of this. Please let me know if above two options do not cater to your needs.&lt;/P&gt;

&lt;P&gt;Please try the following run anywhere search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Prevent Drilldown On Total row&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Table 1&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Drilldown Component: $tokTableComponent1$&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level=* component=*
| chart count over component by log_level
|  head 5&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="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;true&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;set token="tokTableComponent1"&amp;gt;$click.value$&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&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Table 2&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Drilldown Component: $tokTableComponent2$&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level=* component=*
| chart count over component by log_level
| head 5
| addcoltotals label=Total labelfield=component&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="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;eval token="tokTableComponent2"&amp;gt;case($click.value$!="Total",$click.value$)&amp;lt;/eval&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>Mon, 27 Nov 2017 16:22:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304550#M19402</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-11-27T16:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: drill down for cell</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304551#M19403</link>
      <description>&lt;P&gt; Warning on    Invalid child="eval" is not allowed in node="conditional-drilldown" &lt;/P&gt;

&lt;P&gt;Am already using conditional drill down for that particular field so when am trying to add eval its giving me warning&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 17:33:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304551#M19403</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2017-11-27T17:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: drill down for cell</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304552#M19404</link>
      <description>&lt;P&gt;@surekhasplunk, Can you post code from your drilldown, can the condition block be pushed to eval case?&lt;BR /&gt;
Also is Option 1 feasible for you? What version of Splunk are you running?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 02:06:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304552#M19404</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-11-28T02:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: drill down for cell</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304553#M19405</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Am using 6.6.3 and option1 will not work since i have two kind of totals first few rows gives me one total and at the end one more total and with this option i cant add label of my wish&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 13:16:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304553#M19405</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2017-11-28T13:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: drill down for cell</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304554#M19406</link>
      <description>&lt;P&gt;Can you share the drilldown code then?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 13:39:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304554#M19406</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-11-28T13:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: drill down for cell</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304555#M19407</link>
      <description>&lt;P&gt;Hi @niketnilay,&lt;/P&gt;

&lt;P&gt;Suppose i choose option1 since this doesn't give me drilldown option. &lt;BR /&gt;
 true&lt;/P&gt;

&lt;P&gt;How can i add a custom label to it like "Total" or something. As now it just gives me total of all numeric fileds .IF i want to add label Total to the first field say how do i do it. &lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 09:40:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304555#M19407</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2017-11-30T09:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: drill down for cell</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304556#M19408</link>
      <description>&lt;P&gt;Hi @niketnilay,&lt;/P&gt;

&lt;P&gt;below is my drilldown code for reference to show what am doing now. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;drilldown target="_blank"&amp;gt;
          &amp;lt;condition field="Perm"&amp;gt;
            &amp;lt;link&amp;gt;/app/myapp/drilldown_perm?ba=$row.Business Area$&amp;lt;/link&amp;gt;
           &amp;lt;/condition&amp;gt;
          &amp;lt;condition field="Cont"&amp;gt;
            &amp;lt;link&amp;gt;/app/myapp/drilldown_cont?ba=$row.Business Area$&amp;lt;/link&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;/drilldown&amp;gt;

Now the ba variable has the business area name which i am using as input variable for drilldown dashboard.
So here i want to just restrict the drilldown when i see value Total in row.Business Area
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Nov 2017 10:58:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304556#M19408</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2017-11-30T10:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: drill down for cell</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304557#M19409</link>
      <description>&lt;P&gt;@surekhasplunk, if you choose option 1 it will give you drilldown option but prevent drilldown on Total row. Yes with the summary field implementation Total label will not be present.&lt;/P&gt;

&lt;P&gt;You can add text through Javascript Extension using TableView from Splunk JS Stack.&lt;/P&gt;

&lt;P&gt;Following is run anywhere dashboard which includes script &lt;CODE&gt;table_summary_row_label.js&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Note that table id is &lt;CODE&gt;table1&lt;/CODE&gt; and table Simple XML configuration &lt;CODE&gt;totalsRow&lt;/CODE&gt; is set to &lt;CODE&gt;true&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;dashboard  script="table_summary_row_label.js"&amp;gt;
   &amp;lt;label&amp;gt;Prevent Drilldown On Total row&amp;lt;/label&amp;gt;
   &amp;lt;row&amp;gt;
     &amp;lt;panel&amp;gt;
       &amp;lt;title&amp;gt;Table 1&amp;lt;/title&amp;gt;
       &amp;lt;table id="table1"&amp;gt;
         &amp;lt;title&amp;gt;Drilldown Component: $tokTableComponent1$&amp;lt;/title&amp;gt;
         &amp;lt;search&amp;gt;
           &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level=* component=*
 | chart count over component by log_level
 |  head 5&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="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
         &amp;lt;option name="totalsRow"&amp;gt;true&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;set token="tokTableComponent1"&amp;gt;$click.value$&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;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is the JavaScript Code for &lt;CODE&gt;table_summary_row_label.js&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require([
    'underscore',
    'jquery',
    'splunkjs/mvc',
    'splunkjs/mvc/tableview',
    'splunkjs/mvc/simplexml/ready!'
], function(_, $, mvc, TableView) {
    mvc.Components.get("table1").getVisualization(function(tableView) {
        tableView.on('rendered', function() {
            $("#table1 .shared-resultstable-resultstablesummaryrow .null").html("Total");
        });
    });
});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Since it involves static JavaScript file, you may need to restart/refresh/bump Splunk and also clear internet browser history for changes to reflect. Please try out and confirm.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 11:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/drill-down-for-cell/m-p/304557#M19409</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-11-30T11:54:23Z</dc:date>
    </item>
  </channel>
</rss>

