Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
craggus
Contributor III
Contributor III

Sum together the maximum of two measures (by dimension)

Afternoon,

 

I have a basic table showing budget and actual spend against a list of activities. What I would like to do is to create a single KPI showing 'expected' spend - this would sum together the maximum value of either budget or actual PER ACTIVITY. In the example below it would sum the purple cells, resulting in a KPI of 128,000 (i.e. 30,000 + 30,000 + 20, 000 + 12,000 + 21,000 + 15,000)

Snap 2022-05-26 at 15.23.04.png

What formula would I use to calculate this?

Many thanks

Craig

Labels (1)
1 Solution

Accepted Solutions
maxgro
MVP
MVP

Try with

SUM(AGGR(RANGEMAX(SUM(Budget), SUM(Actual)), [Activity ID]))

View solution in original post

2 Replies
maxgro
MVP
MVP

Try with

SUM(AGGR(RANGEMAX(SUM(Budget), SUM(Actual)), [Activity ID]))

craggus
Contributor III
Contributor III
Author

Hi Maxgro,

Fantastic! Works exactly as required.

Many thanks for your help, much appreciated...

Craig