<?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 create line chart showing the count for Current week, prior week and third week? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-create-line-chart-showing-the-count-for-Current-week-prior/m-p/551838#M38167</link>
    <description>&lt;P&gt;I got to know that "values" function is giving results as a string, that's the reason I am not getting any trend.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=nextgen sourcetype=lighthouse_json sourcetype=lighthouse_json datasource=webpagetest step="Homepage" earliest=-7d@d
| eval myTime=case(_time &amp;gt;= relative_time(now(), "-7d"), "CurrentWeek", _time &amp;gt;= relative_time(now(), "-14d") AND _time &amp;lt; relative_time(now(), "-7d"), "PriorWeek", _time &amp;gt;= relative_time(now(), "-21d") AND _time &amp;lt; relative_time(now(), "-14d"), "ThirdWeek", 1=1, "Other")
| stats  values(speedindex) as score by myTime&lt;/LI-CODE&gt;&lt;P&gt;Can you please tell me instead of "values", which function i can use to get the trend?&lt;/P&gt;</description>
    <pubDate>Mon, 17 May 2021 10:34:23 GMT</pubDate>
    <dc:creator>SG</dc:creator>
    <dc:date>2021-05-17T10:34:23Z</dc:date>
    <item>
      <title>How create line chart showing the count for Current week, prior week and third week?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-create-line-chart-showing-the-count-for-Current-week-prior/m-p/551787#M38154</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am planning to draw the trend of the webpage test speed index trend in Splunk which gives the performance of the speed index for the current week, last week, and last before week. I developed the below query to do the job, but I am not getting the trend and query giving some error. Can someone please help me to draw the trend?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=nextgen sourcetype=lighthouse_json sourcetype=lighthouse_json datasource=webpagetest step="Homepage"
| eval myTime=case(test &amp;gt;= relative_time(now(), "-7d"), "CurrentWeek", test &amp;gt;= relative_time(now(), "-14d") AND test &amp;lt; relative_time(now(), "-7d", "PriorWeek", test &amp;gt;= relative_time(now(), "-21d") AND test &amp;lt; relative_time(now(), "-14d", "ThirdWeek", 1=1, "Other")
| stats  values(speedindex) as score by myTime 
| eval fast = if(score&amp;gt;0 AND score&amp;lt;2000,score,0)  
| eval moderate = if(score&amp;gt;=2000 AND score&amp;lt;2999,score,0) 
| eval slow = if(score&amp;gt;=3000,score,0)
| fields - score&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 07:10:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-create-line-chart-showing-the-count-for-Current-week-prior/m-p/551787#M38154</guid>
      <dc:creator>SG</dc:creator>
      <dc:date>2021-05-17T07:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: How create line chart showing the count for Current week, prior week and third week?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-create-line-chart-showing-the-count-for-Current-week-prior/m-p/551811#M38161</link>
      <description>&lt;PRE&gt;| stats  values(speedindex) as score by myTime &lt;/PRE&gt;&lt;P&gt;This returns a multi-value field of all the unique scores in the time period. Is that what you were expecting?&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 09:08:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-create-line-chart-showing-the-count-for-Current-week-prior/m-p/551811#M38161</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-17T09:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: How create line chart showing the count for Current week, prior week and third week?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-create-line-chart-showing-the-count-for-Current-week-prior/m-p/551820#M38162</link>
      <description>&lt;P&gt;I modified the query to get speed index values as per the week&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=nextgen sourcetype=lighthouse_json sourcetype=lighthouse_json datasource=webpagetest step="Homepage" earliest=-7d@d
| eval myTime=case(_time &amp;gt;= relative_time(now(), "-7d"), "CurrentWeek", _time &amp;gt;= relative_time(now(), "-14d") AND _time &amp;lt; relative_time(now(), "-7d"), "PriorWeek", _time &amp;gt;= relative_time(now(), "-21d") AND _time &amp;lt; relative_time(now(), "-14d"), "ThirdWeek", 1=1, "Other")
| stats  values(speedindex) as score by myTime&lt;/LI-CODE&gt;&lt;P&gt;Now i am getting data in the statistics panel as below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SG_0-1621243492699.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14176i195E6F706AAAFEB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SG_0-1621243492699.png" alt="SG_0-1621243492699.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But i am not getting any trend in the visualization panel.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SG_1-1621243584977.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14177i3D3E55081A23AFD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SG_1-1621243584977.png" alt="SG_1-1621243584977.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 09:26:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-create-line-chart-showing-the-count-for-Current-week-prior/m-p/551820#M38162</guid>
      <dc:creator>SG</dc:creator>
      <dc:date>2021-05-17T09:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: How create line chart showing the count for Current week, prior week and third week?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-create-line-chart-showing-the-count-for-Current-week-prior/m-p/551838#M38167</link>
      <description>&lt;P&gt;I got to know that "values" function is giving results as a string, that's the reason I am not getting any trend.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=nextgen sourcetype=lighthouse_json sourcetype=lighthouse_json datasource=webpagetest step="Homepage" earliest=-7d@d
| eval myTime=case(_time &amp;gt;= relative_time(now(), "-7d"), "CurrentWeek", _time &amp;gt;= relative_time(now(), "-14d") AND _time &amp;lt; relative_time(now(), "-7d"), "PriorWeek", _time &amp;gt;= relative_time(now(), "-21d") AND _time &amp;lt; relative_time(now(), "-14d"), "ThirdWeek", 1=1, "Other")
| stats  values(speedindex) as score by myTime&lt;/LI-CODE&gt;&lt;P&gt;Can you please tell me instead of "values", which function i can use to get the trend?&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 10:34:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-create-line-chart-showing-the-count-for-Current-week-prior/m-p/551838#M38167</guid>
      <dc:creator>SG</dc:creator>
      <dc:date>2021-05-17T10:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: How create line chart showing the count for Current week, prior week and third week?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-create-line-chart-showing-the-count-for-Current-week-prior/m-p/551945#M38192</link>
      <description>&lt;P&gt;I could get data week wise using "timewrap" function in splunk.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=nextgen sourcetype=lighthouse_json sourcetype=lighthouse_json datasource=webpagetest step="Homepage" earliest=-21d@d | timechart span=1h list(speedindex) as score | timewrap w&lt;/LI-CODE&gt;&lt;P&gt;Source -&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.0/SearchReference/Timewrap" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.0/SearchReference/Timewrap&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 05:20:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-create-line-chart-showing-the-count-for-Current-week-prior/m-p/551945#M38192</guid>
      <dc:creator>SG</dc:creator>
      <dc:date>2021-05-18T05:20:12Z</dc:date>
    </item>
  </channel>
</rss>

