<?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: Aggr rangesum performance tuning. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-rangesum-performance-tuning/m-p/1133223#M897712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the solution Frank. I too used similar expression but the issue i mainly faced is of performance. When i change the date range through slider the charts take forever to load. That's why i wanted to somehow calculate the same on script and use it on UI for better performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jul 2016 18:41:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-07-26T18:41:36Z</dc:date>
    <item>
      <title>Aggr rangesum performance tuning.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-rangesum-performance-tuning/m-p/1133219#M897708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation where there is a date slider&amp;nbsp; (rolling 13 months) and stacked bar charts &lt;SPAN style="font-size: 13.3333px;"&gt;on dashboard. All these stacked bar charts are using expressions &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;aggr(rangesum(above(sum({&amp;lt;some filters&amp;gt;}Count_1)),0,rowno()), date_range,category)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;aggr(rangesum(above(sum(TOTAL{&amp;lt;some filters&amp;gt;}Count_1)),0,rowno()), date_range,category)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filters are on date_range, flags etc.&lt;/P&gt;&lt;P&gt;This expression is causing my application to hang and on server it takes 7-10 minutes to respond to any change in date slider.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did this to show cumulative sum view on charts.&lt;/P&gt;&lt;P&gt;My data look like :&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="293" style="border: 1px solid rgb(0, 0, 0); width: 392px; height: 295px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Category 1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Category 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Cumulative Sum Category 1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG style="color: #ffffff; font-size: 13.3333px; text-align: center;"&gt;Cumulative Sum Category 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Jan 2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;70&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Feb 2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;120&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;190&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Mar 2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;18&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;65&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;208&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Apr 2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;17&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;82&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;231&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;May 2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;28&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;82&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;110&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;313&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Jun 2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;44&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;47&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;154&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;360&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cumulative sum is not present in my data base, also since i am using slider so i can't pre-calculate it in script and then use on Dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that the only way to handle this is perform these calculation at script level and i tried but messed things. Can anyone share a qvw showing how to carry this in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Stabdha&lt;/P&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/Aggr-rangesum-performance-tuning/m-p/1133219#M897708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr rangesum performance tuning.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-rangesum-performance-tuning/m-p/1133220#M897709</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;try in script as following:&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; Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Category 1],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Category 2],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RangeSum(Peek(newCat1), [Category 1])&amp;nbsp; as newCat1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RangeSum(Peek(newCat2), [Category 2])&amp;nbsp; as newCat2&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jul 2016 11:29:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-rangesum-performance-tuning/m-p/1133220#M897709</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-07-24T11:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr rangesum performance tuning.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-rangesum-performance-tuning/m-p/1133221#M897710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the solution but my time period is not constant, i have a slider and data should keep changing according to the slider. e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132480_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Check for Mar2016 data, cumulative is now depending on the selected time period (Feb 2016 to mar 2016 and not Jan-Mar 2016).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Stabdha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 13:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-rangesum-performance-tuning/m-p/1133221#M897710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-26T13:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr rangesum performance tuning.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-rangesum-performance-tuning/m-p/1133222#M897711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see attached qvw&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 17:50:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-rangesum-performance-tuning/m-p/1133222#M897711</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2016-07-26T17:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr rangesum performance tuning.</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-rangesum-performance-tuning/m-p/1133223#M897712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the solution Frank. I too used similar expression but the issue i mainly faced is of performance. When i change the date range through slider the charts take forever to load. That's why i wanted to somehow calculate the same on script and use it on UI for better performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 18:41:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-rangesum-performance-tuning/m-p/1133223#M897712</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-26T18:41:36Z</dc:date>
    </item>
  </channel>
</rss>

