<?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: Quarter drop-down Splunk dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Quarter-drop-down-Splunk-dashboard/m-p/483121#M31674</link>
    <description>&lt;P&gt;@Inayath_khan I have converted my comment to answer. Please accept if your issue has been resolved!&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2020 15:06:13 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2020-05-05T15:06:13Z</dc:date>
    <item>
      <title>Quarter drop-down Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Quarter-drop-down-Splunk-dashboard/m-p/483118#M31671</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;

&lt;P&gt;I have been working on creating a drop-down where 1Q should represent Jan,feb,march data...2Q= April, may, June data etc.....Also when I select 1Q as my drop-down below I should display Jan , Feb , march either in same panel or different.. Please guide me how I can achieve this?? &lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2020 03:38:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Quarter-drop-down-Splunk-dashboard/m-p/483118#M31671</guid>
      <dc:creator>Inayath_khan</dc:creator>
      <dc:date>2020-04-26T03:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter drop-down Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Quarter-drop-down-Splunk-dashboard/m-p/483119#M31672</link>
      <description>&lt;P&gt;@Inayath_khan correct answer to your question depends on what is your use case. If you want your input to show values as Q1, Q2... Current year Q3 and Q4 have not come. So ideally &lt;/P&gt;

&lt;P&gt;(1) Either You should either Show, Current Quarter and Previous Quarter etc kind of information which keep on rolling as per current quarter.&lt;BR /&gt;
(2) Or have first selection of year and then display the quarters which are valid as per current year quarters.&lt;/P&gt;

&lt;P&gt;Also once you select a quarter do you want to pass on EPOCH time as earliest and latest filter or Quarter name directly to your SPL. This will depend on your data (EPOCH time should always work provided _time extraction is correct in your data).&lt;/P&gt;

&lt;P&gt;Following the SPL that you can try for&lt;/P&gt;

&lt;P&gt;1) Option 1: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| fields - _time 
| eval Label="Current Quarter", TimeEarliest=relative_time(now(),"@q-1q"),TimeLatest=relative_time(now(),"@q") 
| append 
    [| makeresults 
    | fields - _time 
    | eval Label="1 Quarter Ago",TimeEarliest=relative_time(now(),"@q-2q"),TimeLatest=relative_time(now(),"@q-1q")
        ]
| append 
    [| makeresults 
    | fields - _time 
    | eval Label="2 Quarter Ago",TimeEarliest=relative_time(now(),"@q-3q"),TimeLatest=relative_time(now(),"@q-2q")
        ]
| append 
    [| makeresults 
    | fields - _time 
    | eval Label="3 Quarter Ago",TimeEarliest=relative_time(now(),"@q-4q"),TimeLatest=relative_time(now(),"@q-3q")
        ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and Option 2)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| fields - _time 
| eval Label="Q1 (prev year)", TimeEarliest=relative_time(now(),"-1y@y+0q"),TimeLatest=relative_time(now(),"-1y@y+1q-1s") 
| append 
    [| makeresults 
    | fields - _time 
    | eval Label="Q2 (prev year)",TimeEarliest=relative_time(now(),"-1y@y+1q"),TimeLatest=relative_time(now(),"-1y@y+2q-1s")
        ] 
| append 
    [| makeresults 
    | fields - _time 
    | eval Label="Q3 (prev year)",TimeEarliest=relative_time(now(),"-1y@y+2q"),TimeLatest=relative_time(now(),"-1y@y+3q-1s")
        ] 
| append 
    [| makeresults 
    | fields - _time 
    | eval Label="Q4 (prev year)",TimeEarliest=relative_time(now(),"-1y@y+3q"),TimeLatest=relative_time(now(),"-1y@y+4q-1s")
        ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 26 Apr 2020 07:04:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Quarter-drop-down-Splunk-dashboard/m-p/483119#M31672</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-04-26T07:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter drop-down Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Quarter-drop-down-Splunk-dashboard/m-p/483120#M31673</link>
      <description>&lt;P&gt;Thanks buddy this helped me.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 20:20:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Quarter-drop-down-Splunk-dashboard/m-p/483120#M31673</guid>
      <dc:creator>Inayath_khan</dc:creator>
      <dc:date>2020-04-29T20:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter drop-down Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Quarter-drop-down-Splunk-dashboard/m-p/483121#M31674</link>
      <description>&lt;P&gt;@Inayath_khan I have converted my comment to answer. Please accept if your issue has been resolved!&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 15:06:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Quarter-drop-down-Splunk-dashboard/m-p/483121#M31674</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-05-05T15:06:13Z</dc:date>
    </item>
  </channel>
</rss>

