<?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: Create 12 Month Rolling Total that Accounts for Missing Months in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-12-Month-Rolling-Total-that-Accounts-for-Missing-Months/m-p/375066#M89889</link>
    <description>&lt;P&gt;Did you ever figure out if you have SAS/ETS?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc setinit;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 11 Jul 2017 17:48:00 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-07-11T17:48:00Z</dc:date>
    <item>
      <title>Create 12 Month Rolling Total that Accounts for Missing Months</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-12-Month-Rolling-Total-that-Accounts-for-Missing-Months/m-p/374975#M89838</link>
      <description>&lt;DIV class="lia-quilt-column lia-quilt-column-04 lia-quilt-column-left lia-quilt-column-main-left"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;&lt;DIV class="lia-message-author lia-component-author"&gt;&lt;DIV class="lia-message-author-avatar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="lia-message-author-post-count"&gt;Posts: 27&lt;/DIV&gt;&lt;DIV class="lia-message-author-ipaddress"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-right lia-quilt-column-main-right"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;&lt;DIV class="lia-message-heading lia-component-message-header"&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-left"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;&lt;DIV class="lia-message-subject"&gt;Re: Creating a Rolling 12 Month Total&lt;DIV class="MessageReadByModeratorCell lia-moderation-moderated"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-04 lia-quilt-column-right"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="lia-message-dates lia-message-post-date lia-component-post-date-last-edited"&gt;&lt;SPAN class="DateTime lia-message-posted-on lia-component-common-widget-date"&gt;&lt;SPAN class="local-friendly-date"&gt;3m ago &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="lia-message-body lia-component-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;I am currently working with the following code.&amp;nbsp; Does anyone know how to modify to account for missing months? We use SAS EG 7.13&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#000080"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt; ret_avg12;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;set&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt; work.summary_ret_data;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;by&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt; group_status fcst_prod_grp yyyymm;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;array&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt; values(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="3" face="Courier New" color="#008080"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="3" face="Courier New"&gt;) &lt;/FONT&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;_temporary_&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt; first.fcst_prod_grp &lt;/FONT&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;then&lt;/FONT&gt; &lt;FONT size="3" face="Courier New" color="#0000ff"&gt;do&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;call&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt; missing(of values(*));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;count=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="3" face="Courier New" color="#008080"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="3" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;roll_tot=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="3" face="Courier New" color="#008080"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="3" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;end&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;count+&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="3" face="Courier New" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="3" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;roll_tot+sum_of_billings;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;values(mod(count, &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="3" face="Courier New" color="#008080"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="3" face="Courier New"&gt;)+&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="3" face="Courier New" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="3" face="Courier New"&gt;) = sum_of_billings;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt; count&amp;gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="3" face="Courier New" color="#008080"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT size="3" face="Courier New" color="#0000ff"&gt;then&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt; roll_tot=sum(of values(*));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;format&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt; roll_tot &lt;/FONT&gt;&lt;FONT size="3" face="Courier New" color="#008080"&gt;dollar12.2&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;In the following data for example if a month is missing, roll_tot needs to calculate based on 11 months....or whatever span of time is missing.&amp;nbsp; Thank you!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;group_st&amp;nbsp;&amp;nbsp; fcst_pr yyyymm&amp;nbsp;&amp;nbsp;&amp;nbsp; sum_of_bi count&amp;nbsp; roll_tot&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;3000011&amp;nbsp;&amp;nbsp; &amp;nbsp;DQFS&amp;nbsp;&amp;nbsp; &amp;nbsp;201301&amp;nbsp;&amp;nbsp; &amp;nbsp;354.4000&amp;nbsp;&amp;nbsp; &amp;nbsp;1&amp;nbsp;&amp;nbsp; &amp;nbsp;$354.40&lt;BR /&gt;3000011&amp;nbsp;&amp;nbsp; &amp;nbsp;DQFS&amp;nbsp;&amp;nbsp; &amp;nbsp;201302&amp;nbsp;&amp;nbsp; &amp;nbsp;94.0000&amp;nbsp;&amp;nbsp; &amp;nbsp;2&amp;nbsp;&amp;nbsp; &amp;nbsp;$448.40&lt;BR /&gt;3000011&amp;nbsp;&amp;nbsp; &amp;nbsp;DQFS&amp;nbsp;&amp;nbsp; &amp;nbsp;201303&amp;nbsp;&amp;nbsp; &amp;nbsp;48.0300&amp;nbsp;&amp;nbsp; &amp;nbsp;3&amp;nbsp;&amp;nbsp; &amp;nbsp;$496.43&lt;BR /&gt;3000011&amp;nbsp;&amp;nbsp; &amp;nbsp;DQFS&amp;nbsp;&amp;nbsp; &amp;nbsp;201304&amp;nbsp;&amp;nbsp; &amp;nbsp;119.0000&amp;nbsp;&amp;nbsp; &amp;nbsp;4&amp;nbsp;&amp;nbsp; &amp;nbsp;$615.43&lt;BR /&gt;3000011&amp;nbsp;&amp;nbsp; &amp;nbsp;DQFS&amp;nbsp;&amp;nbsp; &amp;nbsp;201305&amp;nbsp;&amp;nbsp; &amp;nbsp;261.9400&amp;nbsp;&amp;nbsp; &amp;nbsp;5&amp;nbsp;&amp;nbsp; &amp;nbsp;$877.37&lt;BR /&gt;3000011&amp;nbsp;&amp;nbsp; &amp;nbsp;DQFS&amp;nbsp;&amp;nbsp; &amp;nbsp;201306&amp;nbsp;&amp;nbsp; &amp;nbsp;359.2200&amp;nbsp;&amp;nbsp; &amp;nbsp;6&amp;nbsp;&amp;nbsp; &amp;nbsp;$1,236.59&lt;BR /&gt;3000011&amp;nbsp;&amp;nbsp; &amp;nbsp;DQFS&amp;nbsp;&amp;nbsp; &amp;nbsp;201307&amp;nbsp;&amp;nbsp; &amp;nbsp;146.0000&amp;nbsp;&amp;nbsp; &amp;nbsp;7&amp;nbsp;&amp;nbsp; &amp;nbsp;$1,382.59&lt;BR /&gt;3000011&amp;nbsp;&amp;nbsp; &amp;nbsp;DQFS&amp;nbsp;&amp;nbsp; &amp;nbsp;201308&amp;nbsp;&amp;nbsp; &amp;nbsp;198.4500&amp;nbsp;&amp;nbsp; &amp;nbsp;8&amp;nbsp;&amp;nbsp; &amp;nbsp;$1,581.04&lt;BR /&gt;3000011&amp;nbsp;&amp;nbsp; &amp;nbsp;DQFS&amp;nbsp;&amp;nbsp; &amp;nbsp;201309&amp;nbsp;&amp;nbsp; &amp;nbsp;143.2500&amp;nbsp;&amp;nbsp; &amp;nbsp;9&amp;nbsp;&amp;nbsp; &amp;nbsp;$1,724.29&lt;BR /&gt;3000011&amp;nbsp;&amp;nbsp; &amp;nbsp;DQFS&amp;nbsp;&amp;nbsp; &amp;nbsp;201310&amp;nbsp;&amp;nbsp; &amp;nbsp;65.2700&amp;nbsp;&amp;nbsp; &amp;nbsp;10&amp;nbsp;&amp;nbsp; &amp;nbsp;$1,789.56&lt;BR /&gt;3000011&amp;nbsp;&amp;nbsp; &amp;nbsp;DQFS&amp;nbsp;&amp;nbsp; &amp;nbsp;201311&amp;nbsp;&amp;nbsp; &amp;nbsp;292.7000&amp;nbsp;&amp;nbsp; &amp;nbsp;11&amp;nbsp;&amp;nbsp; &amp;nbsp;$2,082.26&lt;BR /&gt;3000011&amp;nbsp;&amp;nbsp; &amp;nbsp;DQFS&amp;nbsp;&amp;nbsp; &amp;nbsp;201312&amp;nbsp;&amp;nbsp; &amp;nbsp;71.0000&amp;nbsp;&amp;nbsp; &amp;nbsp;12&amp;nbsp;&amp;nbsp; &amp;nbsp;$2,153.26&lt;BR /&gt;3000011&amp;nbsp;&amp;nbsp; &amp;nbsp;DQFS&amp;nbsp;&amp;nbsp; &amp;nbsp;201401&amp;nbsp;&amp;nbsp; &amp;nbsp;170.2200&amp;nbsp;&amp;nbsp; &amp;nbsp;13&amp;nbsp;&amp;nbsp; &amp;nbsp;$1,969.08&lt;BR /&gt;3000011&amp;nbsp;&amp;nbsp; &amp;nbsp;DQFS&amp;nbsp;&amp;nbsp; &amp;nbsp;201403&amp;nbsp;&amp;nbsp; &amp;nbsp;205.4000&amp;nbsp;&amp;nbsp; &amp;nbsp;14&amp;nbsp;&amp;nbsp; &amp;nbsp;$2,080.48&amp;nbsp; should be 2032.45&lt;BR /&gt;3000011&amp;nbsp;&amp;nbsp; &amp;nbsp;DQFS&amp;nbsp;&amp;nbsp; &amp;nbsp;201404&amp;nbsp;&amp;nbsp; &amp;nbsp;652.5000&amp;nbsp;&amp;nbsp; &amp;nbsp;15&amp;nbsp;&amp;nbsp; &amp;nbsp;$2,684.95&amp;nbsp; should be 2565.95&lt;BR /&gt;3000011&amp;nbsp;&amp;nbsp; &amp;nbsp;DQFS&amp;nbsp;&amp;nbsp; &amp;nbsp;201405&amp;nbsp;&amp;nbsp; &amp;nbsp;18.5200&amp;nbsp;&amp;nbsp; &amp;nbsp;16&amp;nbsp;&amp;nbsp; &amp;nbsp;$2,584.47&amp;nbsp;&amp;nbsp; should be 2322.53&lt;BR /&gt;3000011&amp;nbsp;&amp;nbsp; &amp;nbsp;DQFS&amp;nbsp;&amp;nbsp; &amp;nbsp;201406&amp;nbsp;&amp;nbsp; &amp;nbsp;64.2000&amp;nbsp;&amp;nbsp; &amp;nbsp;17&amp;nbsp;&amp;nbsp; &amp;nbsp;$2,386.73&amp;nbsp;&amp;nbsp; should be 2027.51&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Jul 2017 14:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-12-Month-Rolling-Total-that-Accounts-for-Missing-Months/m-p/374975#M89838</guid>
      <dc:creator>cbrotz</dc:creator>
      <dc:date>2017-07-11T14:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create 12 Month Rolling Total that Accounts for Missing Months</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-12-Month-Rolling-Total-that-Accounts-for-Missing-Months/m-p/375066#M89889</link>
      <description>&lt;P&gt;Did you ever figure out if you have SAS/ETS?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc setinit;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Jul 2017 17:48:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-12-Month-Rolling-Total-that-Accounts-for-Missing-Months/m-p/375066#M89889</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-11T17:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create 12 Month Rolling Total that Accounts for Missing Months</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-12-Month-Rolling-Total-that-Accounts-for-Missing-Months/m-p/375075#M89892</link>
      <description>&lt;P&gt;Is that what I need to use Proc Expand?&amp;nbsp; I think we must have it because I tried running proc expand a few different ways but am not getting the right output yet.&amp;nbsp; There are just so many options I need to read through all of them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I am trying to modify.&amp;nbsp; Every time I use from=month, I get disconnected from the server....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc expand&lt;BR /&gt;&amp;nbsp;&amp;nbsp; data=work.fix_the_date /* input dataset */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; out=work.add_roll_12; /* output dataset */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* input timeframe - monthly */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; *align=end;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* alignment of timeframe - end of month */&lt;BR /&gt;;&lt;BR /&gt;by group_status fcst_prod_grp ; * each time series is grouped;&lt;BR /&gt;id sasdate; * specify time series variable;&lt;BR /&gt;convert sum_of_billings / method=none;&amp;nbsp; * do not interpolate missing values;&lt;BR /&gt;* calculate 3-period moving sum without missing values, and set the first 2 values at ;&lt;BR /&gt;* beginning of each by-group to missing;&lt;BR /&gt;convert sum_of_billings=calc_roll3 / method=none transformout=(nomiss movsum 3);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 18:29:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-12-Month-Rolling-Total-that-Accounts-for-Missing-Months/m-p/375075#M89892</guid>
      <dc:creator>cbrotz</dc:creator>
      <dc:date>2017-07-11T18:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create 12 Month Rolling Total that Accounts for Missing Months</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-12-Month-Rolling-Total-that-Accounts-for-Missing-Months/m-p/375076#M89893</link>
      <description>&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings10/093-2010.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings10/093-2010.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_expand_examples04.htm&amp;amp;docsetVersion=14.2&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_expand_examples04.htm&amp;amp;docsetVersion=14.2&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first paper and the documentation have good examples. The code you posted looks a bit more complex than I think you'd need.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 18:32:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-12-Month-Rolling-Total-that-Accounts-for-Missing-Months/m-p/375076#M89893</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-11T18:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create 12 Month Rolling Total that Accounts for Missing Months</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-12-Month-Rolling-Total-that-Accounts-for-Missing-Months/m-p/375079#M89894</link>
      <description>&lt;P&gt;I need code that will count correctly.&amp;nbsp; Neither of the code examples - either the array or the proc expand are giving the correct totals when a month is skipped.&amp;nbsp; In the data example, if the 11 months are added together accounting for the skipped month, it should total 2032.45. So far, I do not see a code example&amp;nbsp; that is performing this calculation correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 18:43:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-12-Month-Rolling-Total-that-Accounts-for-Missing-Months/m-p/375079#M89894</guid>
      <dc:creator>cbrotz</dc:creator>
      <dc:date>2017-07-11T18:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create 12 Month Rolling Total that Accounts for Missing Months</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-12-Month-Rolling-Total-that-Accounts-for-Missing-Months/m-p/375104#M89900</link>
      <description>&lt;P&gt;Then use TIMESERIES or a data step/proc sql to add the missing&amp;nbsp;months would be the easiest solution IMO.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 19:34:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-12-Month-Rolling-Total-that-Accounts-for-Missing-Months/m-p/375104#M89900</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-11T19:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create 12 Month Rolling Total that Accounts for Missing Months</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-12-Month-Rolling-Total-that-Accounts-for-Missing-Months/m-p/375145#M89911</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/112131"&gt;@cbrotz&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;So far, I do not see a code example&amp;nbsp; that is performing this calculation correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You'll rarely find exactly what you're looking for, you'll need to usually cobble together a couple of answers for anything above basic coding.&lt;/P&gt;
&lt;P&gt;Here's a fully worked example that's I've tested and posted online.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/07a3708dee1225ceb9d4aa75daab2c52" target="_blank"&gt;https://gist.github.com/statgeek/07a3708dee1225ceb9d4aa75daab2c52&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 21:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-12-Month-Rolling-Total-that-Accounts-for-Missing-Months/m-p/375145#M89911</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-11T21:56:44Z</dc:date>
    </item>
  </channel>
</rss>

