<?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: calculating running average for Last 1 day, last 7 days and last 15 days ,, in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/calculating-running-average-for-Last-1-day-last-7-days-and-last/m-p/457161#M115885</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67810"&gt;@rajashekarmt&lt;/a&gt; wrote:&lt;BR /&gt;Dear sir, I explained the logic in the attached excel sheet&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67810"&gt;@rajashekarmt&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Great that you've posted some data but you will also need to add some explanation in words how the logic works and not expect us to work this all out based on the numbers you've provided.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Apr 2018 06:11:31 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2018-04-25T06:11:31Z</dc:date>
    <item>
      <title>calculating running average for Last 1 day, last 7 days and last 15 days ,,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculating-running-average-for-Last-1-day-last-7-days-and-last/m-p/456957#M115814</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need your help to calculate running avearages of transaction amount (tran_amt)backward from current day (t) to last 1day , last7days and last15 days&amp;nbsp; by account number (acc_id). please use the below data and sample calculations are shown in the columns Avg_L1D ( average(t + t-1), Avg_L7d (average( t, t-1,t-2,t-3,t-4,t-5,t-6,t-7) ) if any of lag transactions missing it shoud discard say if t-6 is missing then average will be average(t,t-1,t-2,t-3,t-4,t-5,t-7) etc. similarly for Avg_L15D...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CSV file attached for rawdata and the sample calcuation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 17:02:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculating-running-average-for-Last-1-day-last-7-days-and-last/m-p/456957#M115814</guid>
      <dc:creator>rajashekarmt</dc:creator>
      <dc:date>2018-04-24T17:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: calculating running average for Last 1 day, last 7 days and last 15 days ,,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculating-running-average-for-Last-1-day-last-7-days-and-last/m-p/456985#M115828</link>
      <description>&lt;P&gt;If you could please explain the calculation in terms of your numbers in the sample rather than algebraically, I would like to attempt .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 17:43:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculating-running-average-for-Last-1-day-last-7-days-and-last/m-p/456985#M115828</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-04-24T17:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: calculating running average for Last 1 day, last 7 days and last 15 days ,,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculating-running-average-for-Last-1-day-last-7-days-and-last/m-p/457147#M115877</link>
      <description>Dear sir, I explained the logic in the attached excel sheet</description>
      <pubDate>Wed, 25 Apr 2018 03:53:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculating-running-average-for-Last-1-day-last-7-days-and-last/m-p/457147#M115877</guid>
      <dc:creator>rajashekarmt</dc:creator>
      <dc:date>2018-04-25T03:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: calculating running average for Last 1 day, last 7 days and last 15 days ,,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculating-running-average-for-Last-1-day-last-7-days-and-last/m-p/457161#M115885</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67810"&gt;@rajashekarmt&lt;/a&gt; wrote:&lt;BR /&gt;Dear sir, I explained the logic in the attached excel sheet&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67810"&gt;@rajashekarmt&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Great that you've posted some data but you will also need to add some explanation in words how the logic works and not expect us to work this all out based on the numbers you've provided.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 06:11:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculating-running-average-for-Last-1-day-last-7-days-and-last/m-p/457161#M115885</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-04-25T06:11:31Z</dc:date>
    </item>
  </channel>
</rss>

