<?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 Cumulative Sum in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Cumulative-Sum/m-p/1950196#M78297</link>
    <description>&lt;P&gt;Hello I'm working on a QlikSense dashboard&lt;BR /&gt;I'm trying to calculate the cumulative sum by Customer, and Invoice using the following expression:&lt;BR /&gt;=RangeSum(&lt;BR /&gt;&lt;BR /&gt;Above(total Sum({&amp;lt;[Data Load],Category,Invoice,Customer&amp;gt;}[Quantity])*&lt;BR /&gt;Avg(1),0,aggr(RowNo(),Customer, Invoice))&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;I'm getting the desired result if there is no selection on Invoice, Date, and Category&lt;BR /&gt;what I'm trying to accomplish is as follows:&lt;BR /&gt;for the invoice that is 12301 the cumulative sum is 3272035 which is correct but when I select the invoice I get&amp;nbsp;3264618 which is the value of the invoice and not the cumulative sum&lt;BR /&gt;I added below the sample data script&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ali_hijazi_0-1656589160129.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83053i1758819F0C4B3AEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ali_hijazi_0-1656589160129.png" alt="ali_hijazi_0-1656589160129.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Data Load, Quantity, Category, Customer,Invoice&lt;BR /&gt;31/10/2018, 7417, apple,C1,12300&lt;BR /&gt;31/10/2018, 3264618, orange,C1,12301&lt;BR /&gt;31/10/2018, 7487132, pear,C2,45600&lt;BR /&gt;30/11/2018, 79892, apple,C1,12302&lt;BR /&gt;30/11/2018, 3329629, orange,C1,12303&lt;BR /&gt;30/11/2018, 7318647, pear,C2,45601&lt;BR /&gt;31/12/2018, 85071, apple,C1,12304&lt;BR /&gt;31/12/2018, 3382092, orange,C1,12305&lt;BR /&gt;31/12/2018, 7162199, pear,C2,45602&lt;BR /&gt;31/01/2019, 91648, apple,C1,12306&lt;BR /&gt;31/01/2019, 2515989, orange,C1,12307&lt;BR /&gt;31/01/2019, 7923292, pear,C2,45603&lt;BR /&gt;28/02/2019, 95574, apple,C1,12308&lt;BR /&gt;28/02/2019, 3459038, orange,C1,12309&lt;BR /&gt;28/02/2019, 6862316, pear,C2,45604&lt;BR /&gt;31/03/2019, 99109, apple,C1,12310&lt;BR /&gt;31/03/2019, 3499973, orange,C1,12311&lt;BR /&gt;31/03/2019, 6753454, pear,C2,45605&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2022 11:55:10 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2022-06-30T11:55:10Z</dc:date>
    <item>
      <title>Cumulative Sum</title>
      <link>https://community.qlik.com/t5/App-Development/Cumulative-Sum/m-p/1950196#M78297</link>
      <description>&lt;P&gt;Hello I'm working on a QlikSense dashboard&lt;BR /&gt;I'm trying to calculate the cumulative sum by Customer, and Invoice using the following expression:&lt;BR /&gt;=RangeSum(&lt;BR /&gt;&lt;BR /&gt;Above(total Sum({&amp;lt;[Data Load],Category,Invoice,Customer&amp;gt;}[Quantity])*&lt;BR /&gt;Avg(1),0,aggr(RowNo(),Customer, Invoice))&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;I'm getting the desired result if there is no selection on Invoice, Date, and Category&lt;BR /&gt;what I'm trying to accomplish is as follows:&lt;BR /&gt;for the invoice that is 12301 the cumulative sum is 3272035 which is correct but when I select the invoice I get&amp;nbsp;3264618 which is the value of the invoice and not the cumulative sum&lt;BR /&gt;I added below the sample data script&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ali_hijazi_0-1656589160129.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83053i1758819F0C4B3AEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ali_hijazi_0-1656589160129.png" alt="ali_hijazi_0-1656589160129.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Data Load, Quantity, Category, Customer,Invoice&lt;BR /&gt;31/10/2018, 7417, apple,C1,12300&lt;BR /&gt;31/10/2018, 3264618, orange,C1,12301&lt;BR /&gt;31/10/2018, 7487132, pear,C2,45600&lt;BR /&gt;30/11/2018, 79892, apple,C1,12302&lt;BR /&gt;30/11/2018, 3329629, orange,C1,12303&lt;BR /&gt;30/11/2018, 7318647, pear,C2,45601&lt;BR /&gt;31/12/2018, 85071, apple,C1,12304&lt;BR /&gt;31/12/2018, 3382092, orange,C1,12305&lt;BR /&gt;31/12/2018, 7162199, pear,C2,45602&lt;BR /&gt;31/01/2019, 91648, apple,C1,12306&lt;BR /&gt;31/01/2019, 2515989, orange,C1,12307&lt;BR /&gt;31/01/2019, 7923292, pear,C2,45603&lt;BR /&gt;28/02/2019, 95574, apple,C1,12308&lt;BR /&gt;28/02/2019, 3459038, orange,C1,12309&lt;BR /&gt;28/02/2019, 6862316, pear,C2,45604&lt;BR /&gt;31/03/2019, 99109, apple,C1,12310&lt;BR /&gt;31/03/2019, 3499973, orange,C1,12311&lt;BR /&gt;31/03/2019, 6753454, pear,C2,45605&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 11:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Cumulative-Sum/m-p/1950196#M78297</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2022-06-30T11:55:10Z</dc:date>
    </item>
  </channel>
</rss>

