Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
jeckstein
Partner - Creator
Partner - Creator

Cumulative Sales for Products over multiple years

Hi.

I have a table that shows Year,Product, and Sales. I need to create a cumulative sales column for each product by different Years.

Screen Shot 2016-10-03 at 10.26.58 AM.png

I need to create set analysis to create the "Cumulative Sales" Column. I have included the equations for cumulative sales in the "Cumulative Sales Equation".

Thanks in advance

15 Replies
sunny_talwar

Seems like the same thing you asked here:

cummulative sales set analysis

jeckstein
Partner - Creator
Partner - Creator
Author

Sunny,

This is working. But when I select a year like 2013 it seems like the logic breaks.

Any ideas?

sunny_talwar

Try this:

Aggr(RangeSum(Above(Sum({<Year, Vintage>}Revenue), 0, RowNo())), Vintage, Year)

and see if that helps

Anonymous
Not applicable

I agree with  sunny's reply

please try his formula like ?

Aggr(RangeSum(Above(Sum{1}(Revenue), 0, RowNo())), Vintage, Year)

jeckstein
Partner - Creator
Partner - Creator
Author

Alluraiah,

This is working correctly. But when I put this into a KPI object I am getting a Null.

Thanks,

jeckstein
Partner - Creator
Partner - Creator
Author

Sunny,

This is working correctly. But when I put this into a KPI object I am getting a Null.

Thanks,

sunny_talwar

KPI shows a single value, what do you expect to see in your KPI?

Frank_Hartmann
Master II
Master II

try


Sum(Aggr(RangeSum(Above(Sum({<Year, Vintage>}Revenue), 0, RowNo())), Vintage, Year))


hope this helps

sunny_talwar

KPI shows a single value, what do you expect to see in your KPI?