<?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: n Week Moving Average in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/n-Week-Moving-Average/m-p/248026#M3232</link>
    <description>&lt;P&gt;Can you try using the RelativePeriod in the New Aggregated column, see if its work for you.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2016 16:23:02 GMT</pubDate>
    <dc:creator>Explore_SAS</dc:creator>
    <dc:date>2016-02-04T16:23:02Z</dc:date>
    <item>
      <title>n Week Moving Average</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/n-Week-Moving-Average/m-p/246928#M3201</link>
      <description>&lt;P&gt;Is there a way in VA to calculate a fix period moving average.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the example below, it would be a 6 week moving average.&lt;/P&gt;
&lt;P&gt;It wouldn't matter if the by group that hadn't observered 6 weeks of data yet were missing as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Category	Brand	Week	Measure	MA
Cookies	Brand1	1/3/2015	8583	*
Cookies	Brand1	1/10/2015	812	*
Cookies	Brand1	1/17/2015	827	*
Cookies	Brand1	1/24/2015	2323	*
Cookies	Brand1	1/31/2015	5256	*
Cookies	Brand1	2/7/2015	13712	5252 ((8583+812+827+2323+5256+13712)/6)
Cookies	Brand1	2/14/2015	14348	6213 ((812+827+2323+5256+13712+14348)/6)
Cookies	Brand1	2/21/2015	1654	6353
Cookies	Brand2	1/3/2015	11074	*
Cookies	Brand2	1/10/2015	12299	*
Cookies	Brand2	1/17/2015	12689	*
Cookies	Brand2	1/24/2015	5140	*
Cookies	Brand2	1/31/2015	15695	*
Cookies	Brand2	2/7/2015	11048	11324
Cookies	Brand2	2/14/2015	3898	10128
Cookies	Brand2	2/21/2015	4959	8905
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are currently on VA 7.1&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 16:34:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/n-Week-Moving-Average/m-p/246928#M3201</guid>
      <dc:creator>JoshB</dc:creator>
      <dc:date>2016-01-29T16:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: n Week Moving Average</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/n-Week-Moving-Average/m-p/247303#M3210</link>
      <description>&lt;P&gt;Hi Josh,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think there is an easy way to do this within the VA designer interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe it should be possible to calculate the moving average as part of your data query using PROC SQL or PROC TIMESERIES.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Sam&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2016 20:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/n-Week-Moving-Average/m-p/247303#M3210</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2016-02-01T20:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: n Week Moving Average</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/n-Week-Moving-Average/m-p/248026#M3232</link>
      <description>&lt;P&gt;Can you try using the RelativePeriod in the New Aggregated column, see if its work for you.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 16:23:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/n-Week-Moving-Average/m-p/248026#M3232</guid>
      <dc:creator>Explore_SAS</dc:creator>
      <dc:date>2016-02-04T16:23:02Z</dc:date>
    </item>
  </channel>
</rss>

