Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Save $600 on Qlik Connect registration! Sign up by Dec. 6 to get an extra $100 off with code CYBERSAVE: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
adontchosgarnet
Contributor
Contributor

Get Rangesum to work in Line Chart

I have an expression in a pivot table that works perfectly.  However, it does not work in a line graph.  Anyone know how to fix this?

The expression is:  

Rangesum(Before(Sum({<[Payment_vs_ChargeOff]={">=0"}>}Transaction_Amount),0,ColumnNo(TOTAL)))

My x-axis (Payment_vs_ChargeOff) is a number months past a certain point and my dimenson is the ChargeOff Year.  So, each line represents a year and each point on the line is the number of months past the charge off date.

 

My y-axis is the cumulative total of the transaction amount.

Labels (1)
1 Solution

Accepted Solutions
Kushal_Chawda

@adontchosgarnet  Before() and ColumnNo() functions are specific to pivot table, it will not work in any other charts except pivot table. You can use, above() or below() with rowno(). Probably like below. You can change it to below accordingly

Rangesum(above(Sum({<[Payment_vs_ChargeOff]={">=0"}>}Transaction_Amount),0,RowNo(TOTAL)))

 

View solution in original post

2 Replies
Kushal_Chawda

@adontchosgarnet  Before() and ColumnNo() functions are specific to pivot table, it will not work in any other charts except pivot table. You can use, above() or below() with rowno(). Probably like below. You can change it to below accordingly

Rangesum(above(Sum({<[Payment_vs_ChargeOff]={">=0"}>}Transaction_Amount),0,RowNo(TOTAL)))

 

adontchosgarnet
Contributor
Contributor
Author

You sir, are a steely-eyed missile man!  Thank you!