<?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 How to achieve accumulative sum in charts in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352526#M30202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I have come across a problem, which sounds simple but i just could not get it done.&lt;/P&gt;&lt;P&gt;Basically, i used RANGESUM(ABOVE(SUM([measure]),0,ROWNO()) in a chart to demonstrate accumulative sum by month. as shown below.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="171011" alt="b57c079dc46c4e89bb785a5f05d22b92.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/171011_b57c079dc46c4e89bb785a5f05d22b92.png" style="height: 233px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;when i pick a month or a few month, the accumulative number will get reset, which is normal.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="171012" alt="b478c8be2df44a33b87899892641c463.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/171012_b478c8be2df44a33b87899892641c463.png" style="height: 233px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;however, what i really like to see is the numbers stay as they are no matter which month(s) i pick. for example, if I pick feb, it should display 1.77k instead of 1.27k.&lt;/P&gt;&lt;P&gt;i also want flexibility so i prefer in-chart function rather than summary data set calculated in load process.&lt;/P&gt;&lt;P&gt;in theory, i could use some sort of set analysis that sum all the value where month&amp;lt;= the month picked, or min(months picked), but i just could not come up with a satisfactory solution.&lt;/P&gt;&lt;P&gt;has anyone solved similar problems like this before? thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s.&lt;/P&gt;&lt;P&gt;data table as follow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MONTHNAME(Date) AS MonthYear&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt; DATE('01/01/2001' + RECNO() - 1) AS Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECNO() AS Amount&lt;/P&gt;&lt;P&gt;autogenerate(NUM(DATE#('30/04/2001'))-NUM(DATE#('01/01/2001'))+1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jul 2017 12:47:59 GMT</pubDate>
    <dc:creator>mydearleo</dc:creator>
    <dc:date>2017-07-21T12:47:59Z</dc:date>
    <item>
      <title>How to achieve accumulative sum in charts</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352526#M30202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I have come across a problem, which sounds simple but i just could not get it done.&lt;/P&gt;&lt;P&gt;Basically, i used RANGESUM(ABOVE(SUM([measure]),0,ROWNO()) in a chart to demonstrate accumulative sum by month. as shown below.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="171011" alt="b57c079dc46c4e89bb785a5f05d22b92.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/171011_b57c079dc46c4e89bb785a5f05d22b92.png" style="height: 233px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;when i pick a month or a few month, the accumulative number will get reset, which is normal.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="171012" alt="b478c8be2df44a33b87899892641c463.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/171012_b478c8be2df44a33b87899892641c463.png" style="height: 233px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;however, what i really like to see is the numbers stay as they are no matter which month(s) i pick. for example, if I pick feb, it should display 1.77k instead of 1.27k.&lt;/P&gt;&lt;P&gt;i also want flexibility so i prefer in-chart function rather than summary data set calculated in load process.&lt;/P&gt;&lt;P&gt;in theory, i could use some sort of set analysis that sum all the value where month&amp;lt;= the month picked, or min(months picked), but i just could not come up with a satisfactory solution.&lt;/P&gt;&lt;P&gt;has anyone solved similar problems like this before? thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s.&lt;/P&gt;&lt;P&gt;data table as follow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MONTHNAME(Date) AS MonthYear&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt; DATE('01/01/2001' + RECNO() - 1) AS Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECNO() AS Amount&lt;/P&gt;&lt;P&gt;autogenerate(NUM(DATE#('30/04/2001'))-NUM(DATE#('01/01/2001'))+1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 12:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352526#M30202</guid>
      <dc:creator>mydearleo</dc:creator>
      <dc:date>2017-07-21T12:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve accumulative sum in charts</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352527#M30203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;RangeSum(Above(Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;Date.YearMonth&amp;gt;}&lt;/SPAN&gt;[measure]), 0, RowNo()) &lt;SPAN style="color: #ff0000;"&gt;* Avg(1)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 19:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352527#M30203</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-21T19:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve accumulative sum in charts</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352528#M30204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Sunny, but it did not work, maybe you misunderstood what I wrote above. I will re-write the description&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jul 2017 03:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352528#M30204</guid>
      <dc:creator>mydearleo</dc:creator>
      <dc:date>2017-07-23T03:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve accumulative sum in charts</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352529#M30205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know what your MonthYear field is called, but this is the basic concept is that you need to ignore selection in this field and then multiply your expression by Avg(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Above(Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;MonthYear&amp;gt;}&lt;/SPAN&gt;[measure]), 0, RowNo()) * Avg(1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 11:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352529#M30205</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-24T11:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve accumulative sum in charts</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352530#M30206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny -&lt;/P&gt;&lt;P&gt;I tried this as I was curious (haven't used RangeSum).&amp;nbsp; So loaded data as Jinghua stated and got same result with your expression.&amp;nbsp; What is multiplying by Avg(1) supposed to do?&lt;/P&gt;&lt;P&gt;I did have to fix the initial expression - it was short a parenthesis at the end &lt;/P&gt;&lt;P&gt;RangeSum(ABOVE(SUM([Amount]),0,ROWNO() ) )&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;see attached with 1st being all months and 2nd being Feb selected - mine changed to 1.27 also.&amp;nbsp; Plus I also notice that it changes the scale on the X axis - adds what looks like duration format (12:00 18:00 ...)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 15:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352530#M30206</guid>
      <dc:creator>mjtaft2017</dc:creator>
      <dc:date>2017-07-24T15:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve accumulative sum in charts</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352531#M30207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Multiplying with Avg(1) is not the only thing, the other important part is to ignore selection in the your dimension field. Avg(1) is just used to make out of selection dates or months = 0 and ignoring will make sure that the accumulation is not impacted by the selection of date or month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2017 00:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352531#M30207</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-25T00:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve accumulative sum in charts</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352532#M30208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have tried numerous formulas and combinations, still no luck. for the moment, i am generating a accumulated summary table in load process to achieve static accumulated number&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 00:03:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352532#M30208</guid>
      <dc:creator>mydearleo</dc:creator>
      <dc:date>2017-07-26T00:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve accumulative sum in charts</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352533#M30209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 15:20:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352533#M30209</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-26T15:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve accumulative sum in charts</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352534#M30210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AccumulatedDataTmp:&lt;BR /&gt;LOAD&lt;BR /&gt; MonthYear,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Amount) AS [Amount Accumulated by Month]&lt;BR /&gt;RESIDENT Data&lt;BR /&gt;GROUP BY MonthYear&lt;BR /&gt;;&lt;BR /&gt;INNER JOIN(AccumulatedDataTmp)&lt;BR /&gt;LOAD&lt;BR /&gt; MonthYear AS MonthYear1,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Amount Accumulated by Month" AS [Amount Accumulated by Month 1]&lt;BR /&gt;RESIDENT AccumulatedDataTmp;&lt;/P&gt;&lt;P&gt;[AccumulatedData]:&lt;BR /&gt;LOAD&lt;BR /&gt; MonthYear,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum([Amount Accumulated by Month 1]) AS [Amount Accumulated by Month]&lt;BR /&gt;RESIDENT AccumulatedDataTmp&lt;BR /&gt;WHERE MonthYear &amp;gt;= MonthYear1&lt;BR /&gt;GROUP BY MonthYear&lt;BR /&gt;;&lt;BR /&gt;DROP TABLE AccumulatedDataTmp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 23:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-achieve-accumulative-sum-in-charts/m-p/1352534#M30210</guid>
      <dc:creator>mydearleo</dc:creator>
      <dc:date>2017-07-28T23:51:51Z</dc:date>
    </item>
  </channel>
</rss>

