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.
Solved! Go to Solution.
When you use OR || you must specify whole statements, not just one side.
E.G. Event[Est] = 1 || Event[Est] = 2 || Event[Est] =3
You could use IN instead.
Also, a SWITCH / TRUE() will be much easier to read
Estimate_Accuracy =
SWITCH( TRUE(),
(Event[Est] IN {1,2,3}) && (Event[Time] = "On Time") && (Event[Quality] = "GOOD")
,"Accurate Estimate"
,Event[Est]=0
,"No Estimate"
,"Inaccurate Estimate"
)
Make sure Event[Est] is numeric otherwise you will need to wrap all numbers in quotes in the DAX
Did I answer your question? Mark my post as a solution! Proud to be a Super User!
Connect with me!
Stay up to date on
Read my blogs on
When you use OR || you must specify whole statements, not just one side.
E.G. Event[Est] = 1 || Event[Est] = 2 || Event[Est] =3
You could use IN instead.
Also, a SWITCH / TRUE() will be much easier to read
Estimate_Accuracy =
SWITCH( TRUE(),
(Event[Est] IN {1,2,3}) && (Event[Time] = "On Time") && (Event[Quality] = "GOOD")
,"Accurate Estimate"
,Event[Est]=0
,"No Estimate"
,"Inaccurate Estimate"
)
Make sure Event[Est] is numeric otherwise you will need to wrap all numbers in quotes in the DAX
Did I answer your question? Mark my post as a solution! Proud to be a Super User!
Connect with me!
Stay up to date on
Read my blogs on
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.