Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

DAX IF OR with multiple conditions

Hello,

 

I have this formula in the custom column formula

 if(OR([AR Failure Mode 1] = [QC Failure Mode 1], 
[AR Failure Mode 1] = [QC Failure Mode 2],
[AR Failure Mode 1] = [QC Failure Mode 3]), [AR Failure Mode 1])

However, the error Token RightParen Expected is showing up under the "R" where I have underlined. 

 

Why is this issue occuring?

1 ACCEPTED SOLUTION
gpiero
Skilled Sharer
Skilled Sharer

@Anonymous 

 

I am not sure I correctly understood your issue.

Is this what you are  looking for?

 

pict.PNG

If I can...

View solution in original post

3 REPLIES 3
gpiero
Skilled Sharer
Skilled Sharer

@Anonymous 

 

I am not sure I correctly understood your issue.

Is this what you are  looking for?

 

pict.PNG

If I can...

Just when I thought PBI couldn't get any stupider.

Who comes up with these stupid OR() and AND() functions that are useless? 

Why would anyone ever use the stupid OR() and AND() functions when you can use || and && ?

vivran22
Community Champion
Community Champion

@Anonymous 

 

Hi,

 

The OR function in DAX evaluates only two conditions at a time. If you need to evaluate more than 2 conditions then use || instead of comma (,) and instead of OR function:

 

if(([AR Failure Mode 1] = [QC Failure Mode 1] ||
[AR Failure Mode 1] = [QC Failure Mode 2] ||
[AR Failure Mode 1] = [QC Failure Mode 3]), [AR Failure Mode 1])

 

Related article on OR: https://docs.microsoft.com/en-us/dax/or-function-dax

 

Hope this helps.

 

Thanks,

Vivek

 

PS: Please mark this as solution if this solves the purpose.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors