cancel
Showing results for 
Search instead for 
Did you mean: 

Cumulative Sum with Javascript

0 Kudos

Hi,

I have a Model "MOD_PLANNING" with Dimension: "Sales_office" and measure "Forecast Value".

I should write a javascript function that makes the cumulative sum of sales office values sorted in ascending order by forecast value. If the cumulative sum of these values in the sales_off dimension is greater than 80% then it should replace the values of the sales_off dimension with "other". Can you help me?

Thanks

Accepted Solutions (0)

Answers (0)