<?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 performance issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RangeSum-performance-issue/m-p/851892#M298730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you think about calculate in script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FACT:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Description,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Amount,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(RowNo()=1,Amount,Amount+Peek(TEST)) as "TEST";&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Date, Description, Amount,&lt;/P&gt;&lt;P&gt;2014-11-26, Line 1, 70028.79&lt;/P&gt;&lt;P&gt;2014-11-26, Line 2, 341.28&lt;/P&gt;&lt;P&gt;2014-11-26, Line 3, 349.98&lt;/P&gt;&lt;P&gt;2014-11-26, Line 4, 64507.00&lt;/P&gt;&lt;P&gt;2014-11-26, Line 5, 3743.00&lt;/P&gt;&lt;P&gt;2014-12-05, Line 6, -2316.17&lt;/P&gt;&lt;P&gt;2015-01-14, Line 7, -2316.17&lt;/P&gt;&lt;P&gt;2015-02-14, Line 8, -2316.17&lt;/P&gt;&lt;P&gt;2015-03-14, Line 9, -2316.17&lt;/P&gt;&lt;P&gt;2015-04-14, Line 10, -2316.17&lt;/P&gt;&lt;P&gt;]; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit script; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2015 13:33:54 GMT</pubDate>
    <dc:creator>fvelascog72</dc:creator>
    <dc:date>2015-05-26T13:33:54Z</dc:date>
    <item>
      <title>RangeSum performance issue</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-performance-issue/m-p/851891#M298729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afternoon, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a serious performance issue when using RangeSum in a expression. Even when restricting my data set to just over 40000 rows, the chart takes a really long time to resolve. About 3 minutes!! When the model goes into production it will be loading significantly more!! I have already done things like having to select a single 'Client' before the chart displays and calculates, but it actually makes no difference. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached example is a simplified example of what I am doing. The example includes a simple expression and has the 'real world' expression commented out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "real world" Amount expressions is: =sum({&amp;lt;Acc_GN_ChartID={'60008'} &amp;gt;} Amount).&lt;/P&gt;&lt;P&gt;The "real world" RangeSum expression is: =Rangesum(above(total Sum({&amp;lt;Acc_GN_ChartID={'60008'} &amp;gt;} Amount),0,rowno(total))). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate advice on the expression or pointers when I am going wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;John&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 13:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-performance-issue/m-p/851891#M298729</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2015-05-26T13:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum performance issue</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-performance-issue/m-p/851892#M298730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you think about calculate in script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FACT:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Description,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Amount,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(RowNo()=1,Amount,Amount+Peek(TEST)) as "TEST";&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Date, Description, Amount,&lt;/P&gt;&lt;P&gt;2014-11-26, Line 1, 70028.79&lt;/P&gt;&lt;P&gt;2014-11-26, Line 2, 341.28&lt;/P&gt;&lt;P&gt;2014-11-26, Line 3, 349.98&lt;/P&gt;&lt;P&gt;2014-11-26, Line 4, 64507.00&lt;/P&gt;&lt;P&gt;2014-11-26, Line 5, 3743.00&lt;/P&gt;&lt;P&gt;2014-12-05, Line 6, -2316.17&lt;/P&gt;&lt;P&gt;2015-01-14, Line 7, -2316.17&lt;/P&gt;&lt;P&gt;2015-02-14, Line 8, -2316.17&lt;/P&gt;&lt;P&gt;2015-03-14, Line 9, -2316.17&lt;/P&gt;&lt;P&gt;2015-04-14, Line 10, -2316.17&lt;/P&gt;&lt;P&gt;]; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit script; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 13:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-performance-issue/m-p/851892#M298730</guid>
      <dc:creator>fvelascog72</dc:creator>
      <dc:date>2015-05-26T13:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum performance issue</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-performance-issue/m-p/851893#M298731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you are removing the set analysis from your expressions, it runs in seconds, just by putting in the set expression slows it down to minutes? Is only the rangesum expression affected or also the pure sum expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your sample doesn't show the data model you are using (at least the field Acc_GN_ChartID is not part of your sample, and I assume it's not just part of the fact table). Could you post some more details about your data model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or even better, a sample that demonstrates your issue (i.e. there is a significant impact on performance when using the expression with set analysis put in).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 13:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-performance-issue/m-p/851893#M298731</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-05-26T13:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum performance issue</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-performance-issue/m-p/851894#M298732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are correct, the example is over simplified. I will see how I can get the pre-prod model posted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 13:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-performance-issue/m-p/851894#M298732</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2015-05-26T13:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum performance issue</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-performance-issue/m-p/851895#M298733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Federico, &lt;/P&gt;&lt;P&gt;It is something worth trying, I am assuming that I will have to get my source data to be sorted Date, Description? That may be easier said that done. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will get back to you with a result, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 13:44:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-performance-issue/m-p/851895#M298733</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2015-05-26T13:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum performance issue</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-performance-issue/m-p/851896#M298734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you are doing is creating an accumulation column, right?&lt;/P&gt;&lt;P&gt;The native way (Accumulation/Full Accumulation) does not fit your needs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 13:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-performance-issue/m-p/851896#M298734</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-05-26T13:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum performance issue</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-performance-issue/m-p/851897#M298735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is what I am trying to do, &lt;/P&gt;&lt;P&gt;If you select 'Full Accumulation" on the Amount Expression, it makes no difference.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 13:54:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-performance-issue/m-p/851897#M298735</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2015-05-26T13:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum performance issue</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-performance-issue/m-p/851898#M298736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you mind sharing a sample of your app? It should work as designed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 14:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-performance-issue/m-p/851898#M298736</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-05-26T14:13:00Z</dc:date>
    </item>
  </channel>
</rss>

