Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
lewisjackson_eq
Contributor II
Contributor II

Sum a rangesum

Hi, would someone be able to explain how I would be able to do a sum on the following?:

Rangesum(Above(TOTAL Sum(column1)-sum(column2),0,rowno(TOTAL)))

I'm needing to put the sum of the above into a KPI field.

Would someone be able to help me out? Cheers

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Sum( Aggr( Rangesum(Above(TOTAL Sum(column1)-sum(column2),0,rowno(TOTAL))), YourDimensionsComeHere))


Replace YourDimensionsComeHere with the dimensions you need to create the table you want to use Rangesum(Above(..)).


You might need to sort the aggr dimensions using the sort order you want.

The sortable Aggr function is finally here!

View solution in original post

2 Replies
swuehl
MVP
MVP

Sum( Aggr( Rangesum(Above(TOTAL Sum(column1)-sum(column2),0,rowno(TOTAL))), YourDimensionsComeHere))


Replace YourDimensionsComeHere with the dimensions you need to create the table you want to use Rangesum(Above(..)).


You might need to sort the aggr dimensions using the sort order you want.

The sortable Aggr function is finally here!

lewisjackson_eq
Contributor II
Contributor II
Author

Brilliant! worked Like a charm thanks!