Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
How can this measure be modified to subtract 21 if LOT NUM >5 but not equal to 8
Solved! Go to Solution.
You can use SWITCH function
A pattern like following
= VAR myvalue = SELECTEDVALUE ( vw_ShiftsAll[LOT Num] ) RETURN SWITCH ( TRUE (), myvalue > 6 && myalue <> 8, [Formula1], [Formula2] )
Try
Avg Hrs Var = CALCULATE ( [Average Hrs Worked] - 21, vw_ShiftsAll[LOT Num] > 5 && vw_ShiftsAll[LOT Num] <> 8 )
Hi,
Thks for the reply.
I was looking to combine the 2.
Something like:
If LOT Num <= 5 & <> 9 then subtract 23
else if LOT Num > 5 & <> 8 then subtract 21.
You can use SWITCH function
A pattern like following
= VAR myvalue = SELECTEDVALUE ( vw_ShiftsAll[LOT Num] ) RETURN SWITCH ( TRUE (), myvalue > 6 && myalue <> 8, [Formula1], [Formula2] )
Yeah, that work perfectly. Thanks a million.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
97 | |
82 | |
74 | |
66 |
User | Count |
---|---|
121 | |
105 | |
102 | |
82 | |
72 |