<?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 Proc Expand sum daily volumes to weekly volumes using dates in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Expand-sum-daily-volumes-to-weekly-volumes-using-dates/m-p/46850#M12503</link>
    <description>Hi  there, &lt;BR /&gt;
&lt;BR /&gt;
I have a dataset with two variables - Date and daily volumes for 2 years.  I have missing volumes for every Sunday as the data is based on a 6 day working week and I am are trying to sum up these to weekly volumes.  I understand Proc Expand should be able to do this hence I used the following code:&lt;BR /&gt;
&lt;BR /&gt;
proc expand data=data out=newdata from=day to=week;&lt;BR /&gt;
         id date; &lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
This however seems to total up on Sunday with incorrect totals and negative figures.&lt;BR /&gt;
&lt;BR /&gt;
Please can anyone help.&lt;BR /&gt;
&lt;BR /&gt;
Cheers</description>
    <pubDate>Fri, 19 Jun 2009 08:55:33 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-06-19T08:55:33Z</dc:date>
    <item>
      <title>Proc Expand sum daily volumes to weekly volumes using dates</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Expand-sum-daily-volumes-to-weekly-volumes-using-dates/m-p/46850#M12503</link>
      <description>Hi  there, &lt;BR /&gt;
&lt;BR /&gt;
I have a dataset with two variables - Date and daily volumes for 2 years.  I have missing volumes for every Sunday as the data is based on a 6 day working week and I am are trying to sum up these to weekly volumes.  I understand Proc Expand should be able to do this hence I used the following code:&lt;BR /&gt;
&lt;BR /&gt;
proc expand data=data out=newdata from=day to=week;&lt;BR /&gt;
         id date; &lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
This however seems to total up on Sunday with incorrect totals and negative figures.&lt;BR /&gt;
&lt;BR /&gt;
Please can anyone help.&lt;BR /&gt;
&lt;BR /&gt;
Cheers</description>
      <pubDate>Fri, 19 Jun 2009 08:55:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Expand-sum-daily-volumes-to-weekly-volumes-using-dates/m-p/46850#M12503</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-19T08:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Expand sum daily volumes to weekly volumes using dates</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Expand-sum-daily-volumes-to-weekly-volumes-using-dates/m-p/46851#M12504</link>
      <description>You will find more competences in the SAS Forecasting forum.</description>
      <pubDate>Sun, 21 Jun 2009 23:45:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Expand-sum-daily-volumes-to-weekly-volumes-using-dates/m-p/46851#M12504</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2009-06-21T23:45:44Z</dc:date>
    </item>
  </channel>
</rss>

