The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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