<?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: Trend of Total Sales in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Trend-of-Total-Sales/m-p/300745#M63566</link>
    <description>&lt;P&gt;This is a time series analysis so review the Procs under SAS ETS for a relevant method.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2016 13:06:40 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-09-26T13:06:40Z</dc:date>
    <item>
      <title>Trend of Total Sales</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trend-of-Total-Sales/m-p/300737#M63562</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is "In order to stock the inventory, the store wants to analyze the sales data and predict the trend of total sales for each dress for an extended period of three more alternative days."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this the supporting data that I have got is as follows :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Dress_ID&lt;/TD&gt;&lt;TD&gt;29/8/2013&lt;/TD&gt;&lt;TD&gt;31/8/2013&lt;/TD&gt;&lt;TD&gt;2/9/2013&lt;/TD&gt;&lt;TD&gt;4/9/2013&lt;/TD&gt;&lt;TD&gt;6/9/2013&lt;/TD&gt;&lt;TD&gt;8/9/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1006032852&lt;/TD&gt;&lt;TD&gt;2114&lt;/TD&gt;&lt;TD&gt;2274&lt;/TD&gt;&lt;TD&gt;2491&lt;/TD&gt;&lt;TD&gt;2660&lt;/TD&gt;&lt;TD&gt;2727&lt;/TD&gt;&lt;TD&gt;2887&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1212192089&lt;/TD&gt;&lt;TD&gt;151&lt;/TD&gt;&lt;TD&gt;275&lt;/TD&gt;&lt;TD&gt;570&lt;/TD&gt;&lt;TD&gt;750&lt;/TD&gt;&lt;TD&gt;813&lt;/TD&gt;&lt;TD&gt;1066&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1190380701&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;966005983&lt;/TD&gt;&lt;TD&gt;1005&lt;/TD&gt;&lt;TD&gt;1128&lt;/TD&gt;&lt;TD&gt;1326&lt;/TD&gt;&lt;TD&gt;1455&lt;/TD&gt;&lt;TD&gt;1507&lt;/TD&gt;&lt;TD&gt;1621&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;876339541&lt;/TD&gt;&lt;TD&gt;996&lt;/TD&gt;&lt;TD&gt;1175&lt;/TD&gt;&lt;TD&gt;1304&lt;/TD&gt;&lt;TD&gt;1396&lt;/TD&gt;&lt;TD&gt;1432&lt;/TD&gt;&lt;TD&gt;1559&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure exactly which approach to use here or how to go about this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 12:00:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trend-of-Total-Sales/m-p/300737#M63562</guid>
      <dc:creator>AdityaKir</dc:creator>
      <dc:date>2016-09-26T12:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Trend of Total Sales</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trend-of-Total-Sales/m-p/300740#M63564</link>
      <description>&lt;P&gt;The first thing to do is, of course, to transpose your dataset (once it has been imported into SAS; it can't be a SAS dataset at the moment as a date is not a a valid SAS column name) so you end up with three columns: ID, date, sales.&lt;/P&gt;
&lt;P&gt;Then you need to calculate the difference from previous to current observation, so you get the daily sales; use the lag() function for this.&lt;/P&gt;
&lt;P&gt;Once that is done, you can calculate average sales for certain timespans, or see how sales spread over a week, etc, etc.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 12:14:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trend-of-Total-Sales/m-p/300740#M63564</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-09-26T12:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Trend of Total Sales</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trend-of-Total-Sales/m-p/300745#M63566</link>
      <description>&lt;P&gt;This is a time series analysis so review the Procs under SAS ETS for a relevant method.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 13:06:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trend-of-Total-Sales/m-p/300745#M63566</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-26T13:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trend of Total Sales</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trend-of-Total-Sales/m-p/300748#M63567</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you have only a few observations at your disposal, you can proceed as follows&lt;/P&gt;
&lt;P&gt;1. Transpose your dataset&lt;/P&gt;
&lt;P&gt;2. Sum the columns to obtain total sales&lt;/P&gt;
&lt;P&gt;3 . use a simple linear regression on a time trend with constant&lt;/P&gt;
&lt;P&gt;4. Calculate the predicted values&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 13:23:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trend-of-Total-Sales/m-p/300748#M63567</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2016-09-26T13:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trend of Total Sales</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trend-of-Total-Sales/m-p/300752#M63569</link>
      <description>I missed the "for each dress" part of your question. &lt;BR /&gt;This kind of data is dealt with panel data methods.&lt;BR /&gt;Or, if you want to keep it simple, you can run a regression for each dress.</description>
      <pubDate>Mon, 26 Sep 2016 13:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trend-of-Total-Sales/m-p/300752#M63569</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2016-09-26T13:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trend of Total Sales</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trend-of-Total-Sales/m-p/301003#M63648</link>
      <description>&lt;PRE&gt;
Yeah. Post it at Forecast Forum.
There are many PROC you could use like :  PROC ARIMA , PROC ESM .......

&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Sep 2016 11:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trend-of-Total-Sales/m-p/301003#M63648</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-09-27T11:40:34Z</dc:date>
    </item>
  </channel>
</rss>

