Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Masi_Sahargahi
Contributor III
Contributor III

rangesum for year and month measure

Hi all,

I have a question about using rangesum in qlikview:

I have a year, month and amount as fields; I want to show sum of amount and  also cumulative sum of amount(from beginning till that month) in another column:

year

Month

Sum(amount)

Cumulative sum(amount)

2016

10

100

100

2016

11

200

300

2016

12

300

600

2017

1

400

1000

2017

2

500

1500

2017

3

600

2100

But when I use following formula for calculating cumulative sum It doesn’t work well, it just works for months of any single year:

Rangesum( Above(Count( amount), 0, RowNo()))

Any help would be appreciated

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Try: Rangesum( Above(total Count( amount), 0, RowNo(total)))




talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

Try: Rangesum( Above(total Count( amount), 0, RowNo(total)))




talk is cheap, supply exceeds demand
Masi_Sahargahi
Contributor III
Contributor III
Author

It worked.Thanks in advance!