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

RangeSum not impacted by filtering on abscissa dimension

Hi Qlikers,

I used rangesum to have a cumulative sum on my chart with in abscissa my date field (MonthYear). but when I select a range of date the values will change and start from the first date selected.

function is like this:

rangesum( above(

-sum({$<

[Country]={'UK','US'},

>} [Sales])

,0,rowno()))

Thanks for your support

1 Solution

Accepted Solutions
sunny_talwar

and may be add this to only show the months selected

RangeSum(Above(-Sum({$<[MonthYear] =, [Country]={'UK','US'}>} [Sales]), 0, RowNo())) * Avg({<[Country]={'UK','US'}>} 1)

View solution in original post

3 Replies
marcus_sommer

Maybe by adding the following:

rangesum( above(

-sum({$<

[MonthYear] =,

[Country]={'UK','US'},

>} [Sales])

,0,rowno()))

- Marcus

sunny_talwar

and may be add this to only show the months selected

RangeSum(Above(-Sum({$<[MonthYear] =, [Country]={'UK','US'}>} [Sales]), 0, RowNo())) * Avg({<[Country]={'UK','US'}>} 1)

reivax31
Partner - Creator III
Partner - Creator III
Author

Thanks Marcus and Sunny! it worked perfectly