<?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: RangeSum for Cumulative Rolling Totals in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/RangeSum-for-Cumulative-Rolling-Totals/m-p/2434337#M96887</link>
    <description>&lt;P&gt;Glad to hear it helped. Cheers!&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2024 15:54:36 GMT</pubDate>
    <dc:creator>LorantPataki</dc:creator>
    <dc:date>2024-03-25T15:54:36Z</dc:date>
    <item>
      <title>RangeSum for Cumulative Rolling Totals</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-for-Cumulative-Rolling-Totals/m-p/2432589#M96745</link>
      <description>&lt;P&gt;Hello.&amp;nbsp; I have data similar to the below. In my load script, I want to have a three month rolling cumulative by Customer and Dept (or six month or 12 month or etc).&amp;nbsp; So for month end 2/29 for Bob in Dept Food, sum Dollars Spent per Month for 2/29, 1/31, 12/31.&amp;nbsp; For month end 1/31 for Bob in Dept Food,&amp;nbsp;sum Dollars Spent per Month for 1/31, 12/31, 11/30. and etc and etc.&amp;nbsp; I have figured out how to do the Cumulative Spent to Date by Customer and Dept, but I can't seem to get the rolling cumulative to work.&lt;/P&gt;
&lt;P&gt;The spreadsheet has what I want the values to be for Dollars Spent 3 Month Rolling Cumulative.&amp;nbsp; How would I do this via the load script?&amp;nbsp; Is it a combination of a group by, order by?&amp;nbsp; RangeSum?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic_rolling.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/162335iB85CBBA766AEFB57/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic_rolling.PNG" alt="pic_rolling.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 23:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-for-Cumulative-Rolling-Totals/m-p/2432589#M96745</guid>
      <dc:creator>mtkst13</dc:creator>
      <dc:date>2024-03-19T23:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum for Cumulative Rolling Totals</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-for-Cumulative-Rolling-Totals/m-p/2433614#M96826</link>
      <description>&lt;P&gt;Hello, this would be one way to do it:&lt;/P&gt;
&lt;DIV&gt;&amp;lt;&amp;lt;&amp;lt;&lt;/DIV&gt;
&lt;DIV&gt;Source:&lt;/DIV&gt;
&lt;DIV&gt;LOAD&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; "Month End",&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; "Rolling 3 Min",&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Customer,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Dept,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; "Dollars Spent per Month"&lt;/DIV&gt;
&lt;DIV&gt;FROM [lib://DataFiles/CumulativeRollingTotalExample.xlsx]&lt;/DIV&gt;
&lt;DIV&gt;(ooxml, embedded labels, table is Sheet2);&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;CumulativeTable:&lt;/DIV&gt;
&lt;DIV&gt;NoConcatenate Load&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Customer,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Dept,&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; "Month End",&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; "Dollars Spent per Month",&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; "Dollars Spent per Month"&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; + If(Peek(Customer, -1) = Customer and Peek(Dept, -1) = Dept, Peek("Dollars Spent per Month", -1), 0)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; + If(Peek(Customer, -2) = Customer and Peek(Dept, -2) = Dept, Peek("Dollars Spent per Month", -2), 0) as CumulativeLast3Months&lt;/DIV&gt;
&lt;DIV&gt;Resident Source&lt;/DIV&gt;
&lt;DIV&gt;Order By Customer, Dept, [Month End];&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Drop Table Source;&lt;/DIV&gt;
&lt;DIV&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;and this is the result:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LorantPataki_0-1711095722519.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/162532i6A7B568E84E610E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LorantPataki_0-1711095722519.png" alt="LorantPataki_0-1711095722519.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Mar 2024 08:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-for-Cumulative-Rolling-Totals/m-p/2433614#M96826</guid>
      <dc:creator>LorantPataki</dc:creator>
      <dc:date>2024-03-22T08:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum for Cumulative Rolling Totals</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-for-Cumulative-Rolling-Totals/m-p/2433621#M96827</link>
      <description>&lt;P&gt;PS. A more flexible option, just replace "3" with the number of months to accumulate:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LorantPataki_0-1711096616648.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/162534i9F86F827D6AA2AD8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LorantPataki_0-1711096616648.png" alt="LorantPataki_0-1711096616648.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 08:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-for-Cumulative-Rolling-Totals/m-p/2433621#M96827</guid>
      <dc:creator>LorantPataki</dc:creator>
      <dc:date>2024-03-22T08:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum for Cumulative Rolling Totals</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-for-Cumulative-Rolling-Totals/m-p/2434304#M96881</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/220495"&gt;@LorantPataki&lt;/a&gt;&amp;nbsp;, thank you!&amp;nbsp; This seems to work.&amp;nbsp; Tweaking a little for my real data.&amp;nbsp; Thank you so much!&amp;nbsp; This is exactly what I was looking for...&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 14:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-for-Cumulative-Rolling-Totals/m-p/2434304#M96881</guid>
      <dc:creator>mtkst13</dc:creator>
      <dc:date>2024-03-25T14:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum for Cumulative Rolling Totals</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-for-Cumulative-Rolling-Totals/m-p/2434337#M96887</link>
      <description>&lt;P&gt;Glad to hear it helped. Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 15:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-for-Cumulative-Rolling-Totals/m-p/2434337#M96887</guid>
      <dc:creator>LorantPataki</dc:creator>
      <dc:date>2024-03-25T15:54:36Z</dc:date>
    </item>
  </channel>
</rss>

