<?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 sum using rangesum function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cumulative-sum-using-rangesum-function/m-p/1758724#M720374</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;it's returning 0 as cumulative. It didn't solve my problem.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2020 04:28:47 GMT</pubDate>
    <dc:creator>sadiaasghar</dc:creator>
    <dc:date>2020-11-05T04:28:47Z</dc:date>
    <item>
      <title>Cumulative sum using rangesum function</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-sum-using-rangesum-function/m-p/1754763#M720371</link>
      <description>&lt;P&gt;Simple sum Expression is working&amp;nbsp; but when I apply rangesum formula to caculate Cumulative it's returning 0.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum Expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SUM(TOTAL&amp;lt;[Invoice Date_FKDAT]&amp;gt;aGGR(((Sum({&amp;lt;RecType={'Sales'},[Posting Status_RFBSK]={'C'},[FISCAL YEAR] = {$(=Max([FISCAL YEAR]))},[MonthNo] = {$(=Match(Month(Date(Max([Invoice Date_FKDAT]))), $(=chr(39) &amp;amp; Replace(MonthNames, ';', chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39))))}&lt;BR /&gt;&amp;gt;}[SalesMTon])))&lt;BR /&gt;-&lt;BR /&gt;((((Sum({&amp;lt;RecType={'Sales'},[Posting Status_RFBSK]={'C'},[FISCAL YEAR] = {$(=Max([FISCAL YEAR]))},[MonthNo] = {$(=Match(Month(Date(Max([Invoice Date_FKDAT]))), $(=chr(39) &amp;amp; Replace(MonthNames, ';', chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39))))},&lt;BR /&gt;[Billing Type_FKART]={'S1','RE','ZRAX','ZREX','ZRFX','ZRFI','G2','ZRCO'}&amp;gt;}[SalesMTon]))))*2),[Invoice Date_FKDAT]))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cumulative sum Expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=Rangesum(above(total&lt;BR /&gt;(fabs(Sum({&amp;lt;RecType={'Sales'},[Posting Status_RFBSK]={'C'},[FISCAL YEAR] = {$(=Max([FISCAL YEAR]))},[MonthNo] = {$(=Match(Month(Date(Max([Invoice Date_FKDAT]))), $(=chr(39) &amp;amp; Replace(MonthNames, ';', chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39))))}&amp;gt;}[SalesMTon])))&lt;BR /&gt;-&lt;BR /&gt;(((fabs(Sum({&amp;lt;RecType={'Sales'},[Posting Status_RFBSK]={'C'},[FISCAL YEAR] = {$(=Max([FISCAL YEAR]))},[MonthNo] = {$(=Match(Month(Date(Max([Invoice Date_FKDAT]))), $(=chr(39) &amp;amp; Replace(MonthNames, ';', chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39))))},[Billing Type_FKART]={'S1','RE','ZRAX','ZREX','ZRFX','ZRFI','G2','ZRCO'}&amp;gt;}[SalesMTon]))))*2),0,RowNo(total)))&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-sum-using-rangesum-function/m-p/1754763#M720371</guid>
      <dc:creator>sadiaasghar</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum using rangesum function</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-sum-using-rangesum-function/m-p/1754764#M720372</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 04:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-sum-using-rangesum-function/m-p/1754764#M720372</guid>
      <dc:creator>sadiaasghar</dc:creator>
      <dc:date>2020-10-22T04:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum using rangesum function</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-sum-using-rangesum-function/m-p/1755075#M720373</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/105825"&gt;@sadiaasghar&lt;/a&gt;&amp;nbsp;Sum expression and cumulative sum expression within RangeSum(Above()) looks different. For example, you have TOTAL and Aggr in sum expression, but not in RangeSum(Above())). May be try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RangeSum(Above(TOTAL 
SUM(TOTAL&amp;lt;[Invoice Date_FKDAT]&amp;gt;aGGR(((Sum({&amp;lt;RecType={'Sales'},[Posting 
Status_RFBSK]={'C'},[FISCAL YEAR] = {$(=Max([FISCAL YEAR]))},[MonthNo] = {$(=Match(Month(Date(Max([Invoice Date_FKDAT]))), $(=chr(39) &amp;amp; Replace(MonthNames, ';', chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39))))}
&amp;gt;}[SalesMTon])))
-
((((Sum({&amp;lt;RecType={'Sales'},[Posting Status_RFBSK]={'C'},[FISCAL YEAR] = {$(=Max([FISCAL YEAR]))},[MonthNo] = {$(=Match(Month(Date(Max([Invoice Date_FKDAT]))), $(=chr(39) &amp;amp; Replace(MonthNames, ';', chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39))))},
[Billing Type_FKART]={'S1','RE','ZRAX','ZREX','ZRFX','ZRFI','G2','ZRCO'}&amp;gt;}[SalesMTon]))))*2),[Invoice Date_FKDAT]))
, 0, RowNo(TOTAL)))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 22 Oct 2020 16:17:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-sum-using-rangesum-function/m-p/1755075#M720373</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-10-22T16:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative sum using rangesum function</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-sum-using-rangesum-function/m-p/1758724#M720374</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;it's returning 0 as cumulative. It didn't solve my problem.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 04:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-sum-using-rangesum-function/m-p/1758724#M720374</guid>
      <dc:creator>sadiaasghar</dc:creator>
      <dc:date>2020-11-05T04:28:47Z</dc:date>
    </item>
  </channel>
</rss>

