<?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: Rolling Sum/Rolling Average at Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-Sum-Rolling-Average-at-Script/m-p/1194167#M628789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, just noticed that the data in the excel is repeated. I have completed by dividing the RangeSum by Day of date column.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Sep 2016 08:00:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-09-30T08:00:05Z</dc:date>
    <item>
      <title>Rolling Sum/Rolling Average at Script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Sum-Rolling-Average-at-Script/m-p/1194161#M628783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for the functionality to introduce a column for Rolling Sum or Rolling Average in the attached Excel. It is day wise data and the rolling sum has to be reset at the end of every month.&lt;/P&gt;&lt;P&gt;Please give me your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 13:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Sum-Rolling-Average-at-Script/m-p/1194161#M628783</guid>
      <dc:creator />
      <dc:date>2016-09-29T13:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Sum/Rolling Average at Script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Sum-Rolling-Average-at-Script/m-p/1194162#M628784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this&lt;/P&gt;&lt;P&gt;RollingMonths:&lt;/P&gt;&lt;P&gt;load Period, Period as RollingPeriod, year(Period) as RollingYear Resident Data1;&lt;/P&gt;&lt;P&gt;load Period, Addmonths(Period,1,1) as RollingPeriod, year(Addmonths(Period,1,1)) as RollingYear Resident Data1;&lt;/P&gt;&lt;P&gt;load Period, Addmonths(Period,2,1) as RollingPeriod, year(Addmonths(Period,2,1)) as RollingYear Resident Data1;&lt;/P&gt;&lt;P&gt;load Period, Addmonths(Period,3,1) as RollingPeriod, year(Addmonths(Period,3,1)) as RollingYear Resident Data1;&lt;/P&gt;&lt;P&gt;load Period, Addmonths(Period,4,1) as RollingPeriod, year(Addmonths(Period,4,1)) as RollingYear Resident Data1;&lt;/P&gt;&lt;P&gt;load Period, Addmonths(Period,5,1) as RollingPeriod, year(Addmonths(Period,5,1)) as RollingYear Resident Data1;&lt;/P&gt;&lt;P&gt;load Period, Addmonths(Period,6,1) as RollingPeriod, year(Addmonths(Period,6,1)) as RollingYear Resident Data1;&lt;/P&gt;&lt;P&gt;load Period, Addmonths(Period,7,1) as RollingPeriod, year(Addmonths(Period,7,1)) as RollingYear Resident Data1;&lt;/P&gt;&lt;P&gt;load Period, Addmonths(Period,8,1) as RollingPeriod, year(Addmonths(Period,8,1)) as RollingYear Resident Data1;&lt;/P&gt;&lt;P&gt;load Period, Addmonths(Period,9,1) as RollingPeriod, year(Addmonths(Period,9,1)) as RollingYear Resident Data1;&lt;/P&gt;&lt;P&gt;load Period, Addmonths(Period,10,1) as RollingPeriod, year(Addmonths(Period,10,1)) as RollingYear Resident Data1;&lt;/P&gt;&lt;P&gt;load Period, Addmonths(Period,11,1) as RollingPeriod, year(Addmonths(Period,11,1)) as RollingYear Resident Data1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 16:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Sum-Rolling-Average-at-Script/m-p/1194162#M628784</guid>
      <dc:creator>rupamjyotidas</dc:creator>
      <dc:date>2016-09-29T16:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Sum/Rolling Average at Script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Sum-Rolling-Average-at-Script/m-p/1194163#M628785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD CCY_EXCH_VALID_DT,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MonthName(CCY_EXCH_VALID_DT) as MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM_CCY_CD, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TO_CCY_CD, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RATE_AMT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Rolling Sum.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(FROM_CCY_CD = Previous(FROM_CCY_CD) and MonthYear = Previous(MonthYear), RangeAvg(Peek('RangeAvg'), RATE_AMT), RATE_AMT) as RangeAvg,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(FROM_CCY_CD = Previous(FROM_CCY_CD) and MonthYear = Previous(MonthYear), RangeSum(Peek('RangeSum'), RATE_AMT), RATE_AMT) as RangeSum&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By FROM_CCY_CD, CCY_EXCH_VALID_DT;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139186_Capture.PNG" style="height: 565px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 17:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Sum-Rolling-Average-at-Script/m-p/1194163#M628785</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-29T17:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Sum/Rolling Average at Script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Sum-Rolling-Average-at-Script/m-p/1194164#M628786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick response as usual &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;The RangeSum seems to be working perfectly, however the RangeAvg is not what i expected.&lt;/P&gt;&lt;P&gt;I was expecting something like below,&lt;/P&gt;&lt;P&gt;Date - Range Avg&lt;/P&gt;&lt;P&gt;1/1/2015 - 0.8173&lt;/P&gt;&lt;P&gt;1/2/2015 - (0.8173+0.8141)/2=0.8157&lt;/P&gt;&lt;P&gt;1/3/2015-2.4370/3=0.8123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guess, RangeAvg function works in a different way. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 17:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Sum-Rolling-Average-at-Script/m-p/1194164#M628786</guid>
      <dc:creator />
      <dc:date>2016-09-29T17:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Sum/Rolling Average at Script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Sum-Rolling-Average-at-Script/m-p/1194165#M628787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD CCY_EXCH_VALID_DT,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MonthName(CCY_EXCH_VALID_DT) as MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM_CCY_CD, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TO_CCY_CD, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RATE_AMT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Rolling Sum.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; RangeSum/RangeSumDeno as RangeAvg;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// If(FROM_CCY_CD = Previous(FROM_CCY_CD) and MonthYear = Previous(MonthYear), RangeAvg(Peek('RangeAvg'), RATE_AMT), RATE_AMT) as RangeAvg,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(FROM_CCY_CD = Previous(FROM_CCY_CD) and MonthYear = Previous(MonthYear), RangeSum(Peek('RangeSum'), RATE_AMT), RATE_AMT) as RangeSum,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(FROM_CCY_CD = Previous(FROM_CCY_CD) and MonthYear = Previous(MonthYear), RangeSum(Peek('RangeSumDeno'), 1), 1) as RangeSumDeno&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By FROM_CCY_CD, CCY_EXCH_VALID_DT;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 17:37:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Sum-Rolling-Average-at-Script/m-p/1194165#M628787</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-29T17:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Sum/Rolling Average at Script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Sum-Rolling-Average-at-Script/m-p/1194166#M628788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dates are repeated with this solution.&lt;/P&gt;&lt;P&gt;I would achieve the Average by dividing the RangeSum column with the Day part of date then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 07:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Sum-Rolling-Average-at-Script/m-p/1194166#M628788</guid>
      <dc:creator />
      <dc:date>2016-09-30T07:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Sum/Rolling Average at Script</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Sum-Rolling-Average-at-Script/m-p/1194167#M628789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, just noticed that the data in the excel is repeated. I have completed by dividing the RangeSum by Day of date column.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 08:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Sum-Rolling-Average-at-Script/m-p/1194167#M628789</guid>
      <dc:creator />
      <dc:date>2016-09-30T08:00:05Z</dc:date>
    </item>
  </channel>
</rss>

