<?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: Cumulative Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cumulative-Calculation/m-p/500413#M186977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is looking sweet so far!&amp;nbsp; Thanks tresesco!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Nov 2013 18:18:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-27T18:18:24Z</dc:date>
    <item>
      <title>Cumulative Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Calculation/m-p/500411#M186975</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;Thanks in advance!&amp;nbsp; I have what seems to be a simple request:&amp;nbsp; Show cumulative Sum(Sales)/Sum(Quantity) over time.&amp;nbsp; The 'Cumulative' check box on the expression tab is not working for this and I'll show you why.&amp;nbsp; I have data like this&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/49629_test.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;What I want is cumulative average sales for each month.&amp;nbsp; It would look like this&lt;/P&gt;&lt;P&gt;Month 1 C Avg Sales = 25/12 = 2.1&lt;/P&gt;&lt;P&gt;Month 2 C Avg Sales = (25+23) / (12+13) = 1.9&lt;/P&gt;&lt;P&gt;Month 3 C Avg Sales = (25+23+27) / (12+13+15) = 1.875&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;And for month 12 it would be 357 / 240&amp;nbsp; as the total would show. &lt;/P&gt;&lt;P&gt;Instead, what I get is &lt;/P&gt;&lt;P&gt;Month 1 Avg Sales = 25/12 = 2.1 (Good)&lt;/P&gt;&lt;P&gt;Month 2 Avg Sales = 23/13 = 1.76 (wrong)&lt;/P&gt;&lt;P&gt;Month 3 Avg Sales = 27/15 = 1.8 (wrong)&lt;/P&gt;&lt;P&gt;etc.&amp;nbsp; &lt;/P&gt;&lt;P&gt;When I check the cumulative check box on the expression tab it gives me the right individual Sales and Quantity numbers that I want to use for each month BUT when I do the calculation Avg Sales [ Sum(Sales)/Sum(Quantity) ] and check cumulative, I get the current calculated Avg Sales + Last month calculated Avg Sales + Last 2nd month calculated Avg Sales, etc.&amp;nbsp; In other words, it Calculates Avg Sales and then Accumulates where as what I want is to Accumulate each piece (Sales and Quantity) and then Calculate Avg Sales.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 17:53:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Calculation/m-p/500411#M186975</guid>
      <dc:creator />
      <dc:date>2013-11-27T17:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Calculation/m-p/500412#M186976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=RangeSum(Above(total sum(&lt;STRONG&gt;Sales&lt;/STRONG&gt;),0,RowNo()))&amp;nbsp; / RangeSum(Above(total sum(&lt;STRONG&gt;Quantity&lt;/STRONG&gt;),0,RowNo()))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 18:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Calculation/m-p/500412#M186976</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-11-27T18:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Calculation/m-p/500413#M186977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is looking sweet so far!&amp;nbsp; Thanks tresesco!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 18:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Calculation/m-p/500413#M186977</guid>
      <dc:creator />
      <dc:date>2013-11-27T18:18:24Z</dc:date>
    </item>
  </channel>
</rss>

