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: 
paulwalker
Creator III
Creator III

Need Help??

Hi,

How to calculate cumulative count/sum in pivot table...

Capture.PNG

Cumulative it should be 1200, 1200+2300,  1200+2300+2100,  1200+2300+2100+3200

PFA,

Thanks in Advance.........

5 Replies
Not applicable

Try this code :

RangeSum(Before(Sum(Cost),0,ColumnNo()))

PFA

Regards

Lathaa

sagarkharpude
Creator III
Creator III

Hi,

PFA

jagan
Partner - Champion III
Partner - Champion III

Hi Paul,

You misplaced the Bracket '(' in your expression use this expression below

=RangeSum(before(sum(Cost),0,ColumnNo()))

Hope this helps you.

Regards,

Jagan.

amit_saini
Master III
Master III

Hi Paul,

Backend Script (For example purpose):

LOAD * INLINE [
Month ,Sales
Jan ,1000
Feb ,1500
Mar ,2000
Apr,2500
May ,3000
Jun,3500
Jul,4000
Aug ,4500
Sep,5000
Oct,5500
Nov ,6000
Dec,6500

];

Front End Solution:

    • Call Months and Sale as Dimension  on straight table and below as expression to see Cumm result .

=rangesum(above(total sum(Sales),0,Rowno(TOTAL)))




Not applicable

Hi,

See this qvw.