Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Adding row(1) with previous row(2)

Object

1024810
Accumulation1012162434

How can i calculate in this way using pivot table? Both 'Object' and 'Accumulation' are expression. Any suggestions on what expressions to use?

JanuaryFebruaryMarch1st quarter
1011123
102122---

And, how can i derived in such a way every quarter, the second row will be null?

6 Replies
Gysbert_Wassenaar

Try: rangesum(above(total sum(Object),0,rowno(total)))

depending on the layout of your table you may need to use the before() function instead of above()


talk is cheap, supply exceeds demand
Not applicable
Author

RangeSum(Above(sum(Object),0, rowno()))

Not applicable
Author

Thanks for all of your reply. But I'm having 'Bad Field Name(s): Object ' . Sorry that i forgot to state that my object is actually an expression.

Not applicable
Author

see attached file

Try to use Object field in expression

Not applicable
Author

I tried to use the field icon but its still the same. Still having the same error.

priyav24
Creator II
Creator II

PFA..

This is another way of doing the cumulative sum..

Just check the full accumulation

accumulate.png