Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

rangesum expression

Hi,

I have a requirement like below

My user wants to selects any month ,it should sum the selected month data and previous months data.

Suppose user selects July month it should display sum (July + all previous months) sales

If he selects November it should display sum ( Nov sales + previous months) sales......and so on......

For this I have used expression like rangesum(above(total sum(sales),0,3))----It will evaluate only 3 months(3 is hard coded) sales.

Which function we should use if user makes dynamic month selections.

Thanks in advance

1 Solution

Accepted Solutions
venkatg6759
Creator III
Creator III

rangesum(above(total sum(sales),0,Rowno(TOTAL)))

View solution in original post

2 Replies
venkatg6759
Creator III
Creator III

rangesum(above(total sum(sales),0,Rowno(TOTAL)))

Anonymous
Not applicable
Author

You use set anlysis instead of rangesum() in this case.  That is, if month is dual, someting like:

sum({<Month={"$(='<=' &num(Month))"}, Year=P(Year) >} Sales