Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
riyazasma1009
Creator
Creator

Cumulative Sum in QlikSense Table object

Hi,

I have created a table in QlikSense as shown below:

ProductSub ProductDayDateSales
AAATuesday17/9/2019100
AABWednesday30/9/2019200
BAATuesday17/9/2019150
BABWedensday30/9/2019150

 

I wish to add a column in the table which would calculate the cumulative sum of sales for each product, sub product combination. The resulting table should be as shown below:

ProductSub ProductDayDateSales**bleep** Sales
AAATuesday17/9/2019100100
AABWednesday30/9/2019200300
BAATuesday17/9/2019150150
BABWedensday30/9/2019150300

 

 

Can someone please help me with what expression needs to be written in **bleep** Sales column?

Thanks.

Labels (1)
2 Replies
Amit_Prajapati
Contributor III
Contributor III

You can use the Rangesum funtion in this case to achieve the same.

RangeSum(Above(TOTAL Sum(Sales), 0, RowNo(TOTAL)))

Let me know if it's working for you or not.

BrandonFontes
Partner - Contributor III
Partner - Contributor III

@riyazasma1009 

Try this:

=Aggr(RangeSum(Above(Sum(Sales), 0, RowNo(TOTAL))),Product, [Sub Product])

Captura de Tela 2025-04-10 às 08.41.27.png

Project Leader and Qlik Specialist at Work Avanti Solutions | www.avantisolucoes.com.br