<?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: How to achieve cumulative sum from current record in qlik script. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-achieve-cumulative-sum-from-current-record-in-qlik-script/m-p/1607309#M45052</link>
    <description>&lt;P&gt;This is not working. Also, i want it at script level where we can't use above. Do you have any other way to achieve it?&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2019 07:13:13 GMT</pubDate>
    <dc:creator>muktasrivastava</dc:creator>
    <dc:date>2019-07-30T07:13:13Z</dc:date>
    <item>
      <title>How to achieve cumulative sum from current record in qlik script.</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-achieve-cumulative-sum-from-current-record-in-qlik-script/m-p/1606697#M44956</link>
      <description>&lt;P&gt;Hi All, I am looking for a way to achieve cumulative sum of all records from current position.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Product&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sales&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Cumulative Sum&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;65&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 55&lt;/P&gt;&lt;P&gt;C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50&lt;/P&gt;&lt;P&gt;D&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 30&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2019 10:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-achieve-cumulative-sum-from-current-record-in-qlik-script/m-p/1606697#M44956</guid>
      <dc:creator>muktasrivastava</dc:creator>
      <dc:date>2019-07-27T10:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve cumulative sum from current record in qlik script.</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-achieve-cumulative-sum-from-current-record-in-qlik-script/m-p/1606699#M44958</link>
      <description>&lt;P&gt;Try this&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sum(TOTAL Sales) - RangeSum(Above(Sum(Sales), 1, RowNo()))&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2019 11:49:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-achieve-cumulative-sum-from-current-record-in-qlik-script/m-p/1606699#M44958</guid>
      <dc:creator>swarnendu</dc:creator>
      <dc:date>2019-07-27T11:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve cumulative sum from current record in qlik script.</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-achieve-cumulative-sum-from-current-record-in-qlik-script/m-p/1607309#M45052</link>
      <description>&lt;P&gt;This is not working. Also, i want it at script level where we can't use above. Do you have any other way to achieve it?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 07:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-achieve-cumulative-sum-from-current-record-in-qlik-script/m-p/1607309#M45052</guid>
      <dc:creator>muktasrivastava</dc:creator>
      <dc:date>2019-07-30T07:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve cumulative sum from current record in qlik script.</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-achieve-cumulative-sum-from-current-record-in-qlik-script/m-p/1607328#M45054</link>
      <description>&lt;P&gt;try like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TABLE:
LOAD * INLINE [
Product,Sales 
A,10  
B,5 
C,20 
D,30
];

Table2:
LOAD Product,
Sales,
RangeSum(Peek('VALUE_TOTAL'), Sales) as VALUE_TOTAL
Resident TABLE Order By Product desc;DROP Table TABLE;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 30 Jul 2019 07:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-achieve-cumulative-sum-from-current-record-in-qlik-script/m-p/1607328#M45054</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-07-30T07:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve cumulative sum from current record in qlik script.</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-achieve-cumulative-sum-from-current-record-in-qlik-script/m-p/1607330#M45055</link>
      <description>&lt;P&gt;Thanks Frank_Hartmann i am able to achieve it with this method. Now i have another issue. Is there a way to apply peek on group of dimension. For example: TABLE: LOAD * INLINE [ Product,Sales A,10 A,5 A,10 B,5 B,20 B,100 C,20 C,10 D,30 D,50 ]; and get cumulative sum of A,B,C &amp;amp; D&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 07:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-achieve-cumulative-sum-from-current-record-in-qlik-script/m-p/1607330#M45055</guid>
      <dc:creator>muktasrivastava</dc:creator>
      <dc:date>2019-07-30T07:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve cumulative sum from current record in qlik script.</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-achieve-cumulative-sum-from-current-record-in-qlik-script/m-p/1607344#M45057</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TABLE:
Load *, RowNo() as Row;
LOAD * INLINE [
Product,Sales 
A,10  
A,12
A,1
B,5 
B,25
C,20 
C,33
D,30
D,34
];

Table2:
LOAD Product,
Sales,
If(Product=Previous(Product), RangeSum(Peek('VALUE_TOTAL'), Sales), Sales) as VALUE_TOTAL
Resident TABLE Order By Product desc;DROP Table TABLE;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 30 Jul 2019 08:12:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-achieve-cumulative-sum-from-current-record-in-qlik-script/m-p/1607344#M45057</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-07-30T08:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve cumulative sum from current record in qlik script.</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-achieve-cumulative-sum-from-current-record-in-qlik-script/m-p/1607346#M45058</link>
      <description>&lt;P&gt;Thanks it was helpful and i was able to achieve the result with your solution.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 08:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-achieve-cumulative-sum-from-current-record-in-qlik-script/m-p/1607346#M45058</guid>
      <dc:creator>muktasrivastava</dc:creator>
      <dc:date>2019-07-30T08:21:02Z</dc:date>
    </item>
  </channel>
</rss>

