Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I want to create a sum to minus the latest month from the prior month. Then change the answer to the millions number format. This expression does not cause an error, but does return 0 values;
num (sum( {<MonthKey={'$(=max(MonthKey)))'} >}ClosingFUA ) - (sum( {<MonthKey={'$(=max(MonthKey)-1))'} >}ClosingFUA )) /1000000, '#,##0.00 M')
Sorry, I didn't remove the extra brackets ..
num (
(sum( {<MonthKey={'$(=max(MonthKey))'} >}ClosingFUA )
- sum( {<MonthKey={'$(=max(MonthKey)-1)'} >}ClosingFUA ))
/1000000
, '#,##0.0 M')
Your expression has too many closing brackets ..
num (sum( {<MonthKey={'$(=max(MonthKey)))'} >}ClosingFUA ) - (sum( {<MonthKey={'$(=max(MonthKey)-1))'} >}ClosingFUA )) /1000000, '#,##0.00 M')
Thanks @Lisa_P , removing these brackets returns the value but the number format is the full number and M (12,345,678.90 M) rather than the 12.3 M format required.
Ok, try this:
num (
(sum( {<MonthKey={'$(=max(MonthKey)))'} >}ClosingFUA )
- sum( {<MonthKey={'$(=max(MonthKey)-1))'} >}ClosingFUA ))
/1000000
, '#,##0.0 M')
Thanks @Lisa_P , but this returns zero for each line item
Sorry, I didn't remove the extra brackets ..
num (
(sum( {<MonthKey={'$(=max(MonthKey))'} >}ClosingFUA )
- sum( {<MonthKey={'$(=max(MonthKey)-1)'} >}ClosingFUA ))
/1000000
, '#,##0.0 M')
Excellent, thank you @Lisa_P . Perfect