<?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: trendline wma2 is showing different results between Statistics Table and Single Value in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/trendline-wma2-is-showing-different-results-between-Statistics/m-p/301077#M19160</link>
    <description>&lt;P&gt;Found the solution by using delta - &lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.0/SearchReference/Delta"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.0/SearchReference/Delta&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It was changed to the below:&lt;/P&gt;

&lt;P&gt;index=reporting sourcetype=reporting_json alertId=1234&lt;BR /&gt;
 | timechart span=1w count(alertId) as Test&lt;BR /&gt;
 | delta Test p=1 as Difference&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2017 14:35:50 GMT</pubDate>
    <dc:creator>WEI_LI_YU</dc:creator>
    <dc:date>2017-07-07T14:35:50Z</dc:date>
    <item>
      <title>trendline wma2 is showing different results between Statistics Table and Single Value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/trendline-wma2-is-showing-different-results-between-Statistics/m-p/301076#M19159</link>
      <description>&lt;P&gt;Hi splunkers,&lt;/P&gt;

&lt;P&gt;I'm using the same query for different panels - timechart, statistics table and single value.&lt;BR /&gt;
Noticed that the single value is showing the difference between the previous and the current date.&lt;BR /&gt;
On statistics table the wma2 is working as designed, trendline also.&lt;/P&gt;

&lt;P&gt;However, I would like my timechart to show a trendline with the difference between the dates. By having negative difference it should go below Y=0.&lt;/P&gt;

&lt;P&gt;Here is the query I'm using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=reporting sourcetype=reporting_json alertId=1234
| timechart span=1w count(alertId) as Test
| trendline wma2("x") as trend
| sort - _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Example of statistics table results:&lt;BR /&gt;
Date     Count   WMA&lt;BR /&gt;
June 7    1593   1976&lt;BR /&gt;
june 6    2742   2650.3333&lt;/P&gt;

&lt;P&gt;On Single value it is showing: 1593 and smaller number on its side, -1,149&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 13:42:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/trendline-wma2-is-showing-different-results-between-Statistics/m-p/301076#M19159</guid>
      <dc:creator>WEI_LI_YU</dc:creator>
      <dc:date>2017-07-07T13:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: trendline wma2 is showing different results between Statistics Table and Single Value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/trendline-wma2-is-showing-different-results-between-Statistics/m-p/301077#M19160</link>
      <description>&lt;P&gt;Found the solution by using delta - &lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.0/SearchReference/Delta"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.0/SearchReference/Delta&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It was changed to the below:&lt;/P&gt;

&lt;P&gt;index=reporting sourcetype=reporting_json alertId=1234&lt;BR /&gt;
 | timechart span=1w count(alertId) as Test&lt;BR /&gt;
 | delta Test p=1 as Difference&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 14:35:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/trendline-wma2-is-showing-different-results-between-Statistics/m-p/301077#M19160</guid>
      <dc:creator>WEI_LI_YU</dc:creator>
      <dc:date>2017-07-07T14:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: trendline wma2 is showing different results between Statistics Table and Single Value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/trendline-wma2-is-showing-different-results-between-Statistics/m-p/301078#M19161</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/48661"&gt;@WEI_LI_YU&lt;/a&gt; - Glad you were able to find the solution to your question. Please don't forget to click "Accept" to resolve your question so others can find it. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:46:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/trendline-wma2-is-showing-different-results-between-Statistics/m-p/301078#M19161</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2020-09-29T14:46:40Z</dc:date>
    </item>
  </channel>
</rss>

