<?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 Splunk Pivot with dropdown menu and timepicker in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Pivot-with-dropdown-menu-and-timepicker/m-p/700122#M57413</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;My data source consists of a CSV file containing columns such as TIMESTAMP, APPLICATION, MENU_DES, REPORTING_DEPT, USER_TYPE, and USR_ID. I have developed a Dashboard that includes a time picker and a pivot table utilizing this data source.&lt;/P&gt;&lt;P&gt;Currently, the user wishes to filter the pivot table by APPLICATION. I have implemented a dropdown menu for APPLICATION and established a search query accordingly. However, the dropdown only displays "All," and the search query dont seeem to be returning values to the dropdown list.&lt;/P&gt;&lt;P&gt;Additionally, I need to incorporate a filter condition for APPLICATION in the pivot table based on the selection made from the dropdown menu. Could you please assist me with this?&lt;/P&gt;&lt;P&gt;Below is my dashboard code.&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;&amp;lt;form hideChrome="true" version="1.1"&amp;gt;
  &amp;lt;label&amp;gt;Screen log view&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false" autoRun="false"&amp;gt;&amp;gt;
    &amp;lt;input type="time" token="field1"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-30d@d&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  

  &amp;lt;input type="dropdown" token="SelectedApp" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;Application Name&amp;lt;/label&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
index="idxmainframe" source="*_screen_log.CSV"   
| table APPLICATION
| dedup APPLICATION 
| sort APPLICATION            
          &amp;lt;/query&amp;gt;
           &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
                               &amp;lt;/search&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;apps&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;apps&amp;lt;/fieldForValue&amp;gt;
        &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
        &amp;lt;default&amp;gt;All&amp;lt;/default&amp;gt;           
      &amp;lt;/input&amp;gt;
&amp;lt;/fieldset&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;| pivot screen ds dc(USR_ID) AS "Distinct Count of USR_ID" 
            SPLITROW APPLICATION AS APPLICATION 
            SPLITROW MENU_DES AS MENU_DES 
            SPLITROW REPORTING_DEPT AS REPORTING_DEPT 
            SPLITCOL USER_TYPE BOTTOM 0 dc(USR_ID) 
            ROWSUMMARY 0 
            COLSUMMARY 0 
            NUMCOLS 100 
            SHOWOTHER 1 | sort 0 APPLICATION MENU_DES REPORTING_DEPT 
          &amp;lt;/query&amp;gt;
           &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&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;none&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;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;H6&gt;&amp;nbsp;&lt;/H6&gt;</description>
    <pubDate>Wed, 25 Sep 2024 18:17:54 GMT</pubDate>
    <dc:creator>ravikumar_sri20</dc:creator>
    <dc:date>2024-09-25T18:17:54Z</dc:date>
    <item>
      <title>Splunk Pivot with dropdown menu and timepicker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Pivot-with-dropdown-menu-and-timepicker/m-p/700122#M57413</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;My data source consists of a CSV file containing columns such as TIMESTAMP, APPLICATION, MENU_DES, REPORTING_DEPT, USER_TYPE, and USR_ID. I have developed a Dashboard that includes a time picker and a pivot table utilizing this data source.&lt;/P&gt;&lt;P&gt;Currently, the user wishes to filter the pivot table by APPLICATION. I have implemented a dropdown menu for APPLICATION and established a search query accordingly. However, the dropdown only displays "All," and the search query dont seeem to be returning values to the dropdown list.&lt;/P&gt;&lt;P&gt;Additionally, I need to incorporate a filter condition for APPLICATION in the pivot table based on the selection made from the dropdown menu. Could you please assist me with this?&lt;/P&gt;&lt;P&gt;Below is my dashboard code.&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;&amp;lt;form hideChrome="true" version="1.1"&amp;gt;
  &amp;lt;label&amp;gt;Screen log view&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false" autoRun="false"&amp;gt;&amp;gt;
    &amp;lt;input type="time" token="field1"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-30d@d&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  

  &amp;lt;input type="dropdown" token="SelectedApp" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;Application Name&amp;lt;/label&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
index="idxmainframe" source="*_screen_log.CSV"   
| table APPLICATION
| dedup APPLICATION 
| sort APPLICATION            
          &amp;lt;/query&amp;gt;
           &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
                               &amp;lt;/search&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;apps&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;apps&amp;lt;/fieldForValue&amp;gt;
        &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
        &amp;lt;default&amp;gt;All&amp;lt;/default&amp;gt;           
      &amp;lt;/input&amp;gt;
&amp;lt;/fieldset&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;| pivot screen ds dc(USR_ID) AS "Distinct Count of USR_ID" 
            SPLITROW APPLICATION AS APPLICATION 
            SPLITROW MENU_DES AS MENU_DES 
            SPLITROW REPORTING_DEPT AS REPORTING_DEPT 
            SPLITCOL USER_TYPE BOTTOM 0 dc(USR_ID) 
            ROWSUMMARY 0 
            COLSUMMARY 0 
            NUMCOLS 100 
            SHOWOTHER 1 | sort 0 APPLICATION MENU_DES REPORTING_DEPT 
          &amp;lt;/query&amp;gt;
           &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&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;none&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;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;H6&gt;&amp;nbsp;&lt;/H6&gt;</description>
      <pubDate>Wed, 25 Sep 2024 18:17:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Pivot-with-dropdown-menu-and-timepicker/m-p/700122#M57413</guid>
      <dc:creator>ravikumar_sri20</dc:creator>
      <dc:date>2024-09-25T18:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Pivot with dropdown menu and timepicker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Pivot-with-dropdown-menu-and-timepicker/m-p/700135#M57414</link>
      <description>&lt;P&gt;In your dropdown, you seem to have the fieldForLabel and fieldForValue both set to "apps", but in your dynamic query you have used the table command to filter the fields down to only the "APPLICATION" field. Therefore no results will appear except for the default "All". I recommend changing fieldForLabel and fieldForValue to "APPLICATION".&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 20:24:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Pivot-with-dropdown-menu-and-timepicker/m-p/700135#M57414</guid>
      <dc:creator>marnall</dc:creator>
      <dc:date>2024-09-25T20:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Pivot with dropdown menu and timepicker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Pivot-with-dropdown-menu-and-timepicker/m-p/700170#M57415</link>
      <description>&lt;P&gt;Hi marnall,&lt;/P&gt;&lt;P&gt;I have changed&amp;nbsp;fieldForLabel and&amp;nbsp;fieldForValue to "APPLICATION". Still the dropdown menu is returning only "All". Could you please help ?..Below is the latest code.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form hideChrome="true" version="1.1"&amp;gt;
  &amp;lt;label&amp;gt;SCODE_VIEW&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false" autoRun="false"&amp;gt;&amp;gt;
    &amp;lt;input type="time" token="field1" searchWhenChanged="true" &amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-30d@d&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  

  &amp;lt;input type="dropdown" token="SelectedApp" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;Application Name&amp;lt;/label&amp;gt;
        &amp;lt;Search&amp;gt;
          &amp;lt;query&amp;gt;
index="idxmainframe" source="*_SCODE_DATA.CSV"  
            earliest=$field1.earliest$ latest=$field1.latest$ 
| table APPLICATION
| dedup APPLICATION 
| stats count by APPLICATION            
          &amp;lt;/query&amp;gt;
     	  &amp;lt;/Search&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;APPLICATION&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;APPLICATION&amp;lt;/fieldForValue&amp;gt;
        &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
        &amp;lt;default&amp;gt;All&amp;lt;/default&amp;gt;	   
      	   
      &amp;lt;/input&amp;gt;
 &amp;lt;/fieldset&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;| pivot Scode ds dc(USR_ID) AS "Distinct Count of USR_ID" 
            SPLITROW APPLICATION AS APPLICATION 
            SPLITROW MENU_DES AS MENU_DES 
            SPLITROW REPORTING_DEPT AS REPORTING_DEPT 
            SPLITCOL USER_TYPE BOTTOM 0 dc(USR_ID) 
            ROWSUMMARY 0 
            COLSUMMARY 0 
            NUMCOLS 100 
            SHOWOTHER 1 | sort 0 APPLICATION MENU_DES REPORTING_DEPT 
          &amp;lt;/query&amp;gt;
           &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&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;none&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;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 07:32:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Pivot-with-dropdown-menu-and-timepicker/m-p/700170#M57415</guid>
      <dc:creator>ravikumar_sri20</dc:creator>
      <dc:date>2024-09-26T07:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Pivot with dropdown menu and timepicker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Pivot-with-dropdown-menu-and-timepicker/m-p/700229#M57416</link>
      <description>&lt;P&gt;Looks like there was some invisible junk&amp;nbsp; character(s) in the code. I got it working...Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 14:33:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Pivot-with-dropdown-menu-and-timepicker/m-p/700229#M57416</guid>
      <dc:creator>ravikumar_sri20</dc:creator>
      <dc:date>2024-09-26T14:33:47Z</dc:date>
    </item>
  </channel>
</rss>

