Forum Discussion
amandabus21
3 years agoHelper V
COnditonal Column
How can I change this formula so that it only calculates if the previous Equipment Key does not equal the next Equipment Key. It then should be 0. Variable Difference = VAR curr = ...
- 3 years ago
Please try
MeasureDifference =
VAR FirstSelectedDate =
CALCULATE (
MIN ( 'PM On Time Performance Bus PM-BI-002 (2)'[Completion Date.Completion Date Level 01] ),
ALLSELECTED (),
VALUES ( 'PM On Time Performance Bus PM-BI-002 (2)'[Equipment.Equipment Level 01.Key] )
)
RETURN
SUMX (
'PM On Time Performance Bus PM-BI-002 (2)',
IF (
'PM On Time Performance Bus PM-BI-002 (2)'[Completion Date.Completion Date Level 01] = FirstSelectedDate,
0,
'PM On Time Performance Bus PM-BI-002 (2)'[Variable Difference]
)
)
amandabus21
3 years agoHelper V
This gave blank values.
If i remove ""Sum" from Variable difference, the whole table goes blank.
tamerj1
3 years agoCommunity Champion
This is a new Measure which calculates based on the original Calculated Column.
- amandabus213 years agoHelper V
Yes, I created as a new measure and added to the table. Its still blank.