Forum Discussion
Measure - Subtract one field from another
- Anonymous3 years ago
Hi spandy34 ,
If [Previous Performance] and [Current Performance] are measures, you can use them directly.
If [Previous Performance] and [Current Performance] are columns, you need to use SUM()/MAX()/MIN() function to use them. Measure will return aggregation.
Measure:
Diff in Per No Previous = IF ( ISBLANK ( SUM ( 'TableName'[Previous Performance] ) ), 0, SUM ( 'TableName'[Current Performance] ) - SUM ( 'TableName'[Previous Performance] ) )Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi spandy34 ,
If [Previous Performance] and [Current Performance] are measures, you can use them directly.
If [Previous Performance] and [Current Performance] are columns, you need to use SUM()/MAX()/MIN() function to use them. Measure will return aggregation.
Measure:
Diff in Per No Previous =
IF (
ISBLANK ( SUM ( 'TableName'[Previous Performance] ) ),
0,
SUM ( 'TableName'[Current Performance] )
- SUM ( 'TableName'[Previous Performance] )
)
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.