Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
alangho
Contributor
Contributor

RangeSum with date in the past

Hi tohether,

i had a problem with rangeSum.

I need the cumulated sum for the actual and the previous year.

For the actual year it works fine with:

=rangesum(above(sum([Umsatz.Verkauf (MW)]), 0, rowno()))

What i have to do for the previous year?

clipboard_image_0.png

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

Is this not working then?

=RangeSum(Above(Sum({<Jahr = {$(#=only(Jahr)-1)}>} [Umsatz.Verkauf (MW)]), 0, RowNo()))

 

View solution in original post

4 Replies
sunny_talwar

What is your expression for the Umsatz 2017 column?

alangho
Contributor
Contributor
Author

sum({<Jahr={$(#=only(Jahr)-1)}>}[Umsatz.Verkauf (MW)])

sunny_talwar

Is this not working then?

=RangeSum(Above(Sum({<Jahr = {$(#=only(Jahr)-1)}>} [Umsatz.Verkauf (MW)]), 0, RowNo()))

 

alangho
Contributor
Contributor
Author

Thanks it's working fine now.