<?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 Avg sales one week before and after Christmas in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Avg-sales-one-week-before-and-after-Christmas/m-p/477820#M10667</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to analysis the Avg sales one week before and after Christmas of the stores.&lt;/P&gt;&lt;P&gt;I have a date, sales, and store columns&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do so?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS VA 7.4 and&amp;nbsp;Viya.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;(learner)&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jul 2018 10:28:41 GMT</pubDate>
    <dc:creator>jmehul</dc:creator>
    <dc:date>2018-07-13T10:28:41Z</dc:date>
    <item>
      <title>Avg sales one week before and after Christmas</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Avg-sales-one-week-before-and-after-Christmas/m-p/477820#M10667</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to analysis the Avg sales one week before and after Christmas of the stores.&lt;/P&gt;&lt;P&gt;I have a date, sales, and store columns&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do so?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS VA 7.4 and&amp;nbsp;Viya.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;(learner)&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 10:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Avg-sales-one-week-before-and-after-Christmas/m-p/477820#M10667</guid>
      <dc:creator>jmehul</dc:creator>
      <dc:date>2018-07-13T10:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Avg sales one week before and after Christmas</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Avg-sales-one-week-before-and-after-Christmas/m-p/478017#M10673</link>
      <description>&lt;P&gt;I don't have access to or experience with Visual Analytics, however there are a few additional pieces of information you might supply to help someone else answer the question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First thing is to verify that your dates are actual SAS date values and not character values that look like dates or numeric that look like some date values. A number of 20180604 is not a date value unless it is being displayed with something like the SAS yymmddn8 format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second is to clearly define what you mean by "week before Christmas". Do mean the 7 days Dec 18 to Dec 24 or "the Sunday to Saturday preceding Christmas" or possibly some other definition that might involve the days your store is open? And similar for the week after&amp;nbsp;Christmas. Remember that New Years Eve is 6 days after&amp;nbsp;Christmas and New Years Day is 7 days. Do those days count for the "week"?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 19:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Avg-sales-one-week-before-and-after-Christmas/m-p/478017#M10673</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-13T19:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Avg sales one week before and after Christmas</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Avg-sales-one-week-before-and-after-Christmas/m-p/478589#M10684</link>
      <description>&lt;P&gt;&amp;nbsp;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sure would like to clarify more on that.&lt;/P&gt;&lt;P&gt;So the dates are in SAS familiar format and not character or numerical values. I am using ddmmyyd10. format here. I just need to calculate the sales 7 days before and after a particular date(say any holiday).&lt;BR /&gt;So trying to figure out if there is a way to store the holiday date in a variable in SAS &lt;STRONG&gt;Visual Analytics 9.4&lt;/STRONG&gt; as a&amp;nbsp;benchmark value for our calculations.&lt;BR /&gt;&lt;BR /&gt;SAS Code example&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Christmas = holiday('christmas', year);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;format christmas DDMMYYD10.;&lt;BR /&gt;lower_date=intnx('day', christmas , -7);&lt;BR /&gt;format lower_date DDMMYYD10.;&lt;BR /&gt;upper_date=intnx('day', christmas , 7);&lt;BR /&gt;format upper_date DDMMYYD10.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if lower_date&amp;lt;=date &amp;lt;= christmas then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;festive_flag=1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if christmas&amp;lt;=date &amp;lt;= upper_date then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;festive_flag=2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;end;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 08:58:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Avg-sales-one-week-before-and-after-Christmas/m-p/478589#M10684</guid>
      <dc:creator>jmehul</dc:creator>
      <dc:date>2018-07-17T08:58:58Z</dc:date>
    </item>
  </channel>
</rss>

