<?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'' high computation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RangeSum-high-computation/m-p/1216598#M861584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you try to calculate some 'Rolling X', you can also try a script based solution like described in&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2588"&gt;Qlik Design Blog &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2017 16:47:31 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2017-01-09T16:47:31Z</dc:date>
    <item>
      <title>''RangeSum'' high computation</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-high-computation/m-p/1216595#M861581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE style="border: 0px; font-size: 13px; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;&lt;TBODY style="font-size: 13px;"&gt;&lt;TR style="border: 0px; font-size: 13px;"&gt;&lt;TD class="votecell" style="padding: 0 15px 0 0; border: 0px; font-size: 13px;"&gt;&lt;P class="vote" style="font-size: 13px; text-align: center;"&gt;&lt;/P&gt;&lt;DIV class="favoritecount" style="font-size: 13px;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD class="postcell" style="border: 0px; font-size: 13px;"&gt;&lt;P class="post-text" style="margin: 0 0 5px; font-size: 15px;"&gt;&lt;/P&gt;&lt;P style="margin: 0 0 1em;"&gt;I would like to us Qlik ''RangeSum'' function.But for huge data (150000 rows) Rangsum function calculating for long time (more than five minutes) then I must have to stop Qlik and start again.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-high-computation/m-p/1216595#M861581</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: ''RangeSum'' high computation</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-high-computation/m-p/1216596#M861582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post your expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edited:&lt;/P&gt;&lt;P&gt;Are you using Above() or similar inside the Rangesum?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 16:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-high-computation/m-p/1216596#M861582</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-09T16:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: ''RangeSum'' high computation</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-high-computation/m-p/1216597#M861583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan ,&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f5faf0; color: #0000ff;"&gt;RangeSum&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f5faf0; color: #0000ff;"&gt;Above&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f5faf0; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f5faf0; color: #800000;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;), 0, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f5faf0; color: #0000ff;"&gt;RowNo&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;()))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f5faf0;"&gt;It works for small data I test on excel. But that huge data I am getting from MS SQL. Thank you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 16:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-high-computation/m-p/1216597#M861583</guid>
      <dc:creator />
      <dc:date>2017-01-09T16:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: ''RangeSum'' high computation</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-high-computation/m-p/1216598#M861584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you try to calculate some 'Rolling X', you can also try a script based solution like described in&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4252"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2588"&gt;Qlik Design Blog &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 16:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-high-computation/m-p/1216598#M861584</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-09T16:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: ''RangeSum'' high computation</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-high-computation/m-p/1216599#M861585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might be another approach&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 17:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-high-computation/m-p/1216599#M861585</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-09T17:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: ''RangeSum'' high computation</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-high-computation/m-p/1216600#M861586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Sunny T &amp;amp;lt;span class=&amp;amp;quot;icon-status-icon icon-mvp&amp;amp;quot; title=&amp;amp;quot;Mvp&amp;amp;quot;&amp;amp;gt;&amp;amp;lt;/span&amp;amp;gt; wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;This might be another approach&lt;/P&gt;
&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2588" data-containertype="37" data-objectid="4531" data-objecttype="38" href="https://community.qlik.com/blogs/qlikviewdesignblog/2015/11/02/the-as-of-table"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That's actually what I've tried to link to as my second link &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But nevermind, it's part of the first link, too (and the AsOf-Table concept is also an important part of the Gysbert's main doc which also discusses some alternatives):&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4252#comment-46501" title="https://community.qlik.com/docs/DOC-4252#comment-46501"&gt;https://community.qlik.com/docs/DOC-4252#comment-46501&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 18:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-high-computation/m-p/1216600#M861586</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-09T18:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: ''RangeSum'' high computation</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-high-computation/m-p/1216601#M861587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're trying to calculate a cumulative sum over an entire table then perhaps you can calculate it in the script instead. If your source table is already sorted correctly then you could try using the peek function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...some fields...,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rangesum(Amount, CumulativeAmount) as CumulativeAmount&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...source_table...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you source table is not sorted already then you need to load it first into a temporary table and then use a resident load with an ORDER BY clause to sort it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...some fields...,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rangesum(Amount, CumulativeAmount) as CumulativeAmount&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;RESIDENT&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...unsorted_temp_table...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ORDER BY&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;And if you need to the cumulative amounts restarted for each value of a dimension (or for combinations of values from several dimensions) you need to add a check for changes of those values:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...some fields...,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Previous(&lt;STRONG&gt;Product&lt;/STRONG&gt;)=&lt;STRONG&gt;Product&lt;/STRONG&gt;, Rangesum(Amount, CumulativeAmount),Amount) as CumulativeAmount&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;RESIDENT&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...unsorted_temp_table...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ORDER BY&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product, OrderDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 18:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-high-computation/m-p/1216601#M861587</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2017-01-09T18:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: ''RangeSum'' high computation</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-high-computation/m-p/1216602#M861588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Stafan,Sunny and gysbert. I try to use another approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 16:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-high-computation/m-p/1216602#M861588</guid>
      <dc:creator />
      <dc:date>2017-01-12T16:16:51Z</dc:date>
    </item>
  </channel>
</rss>

