Skip to main content
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 (2)
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.