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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
eamonnking
Regular Visitor

If OR in a data model

Hi I'm trying to recreate this in power BI I figured out how to do it in excel but just coming up against roadblocks.

 

=IF(OR(B2="SSAS",B2="BOB",B2="ARF",B2="AMRF"),IF(OR(C2="Leap elite",C2="Leap elite - REGULAR"),TRUE,FALSE))

 

I need to add an additional column to the model to output thre or false.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Try

 IF((B2="SSAS" ||  B2="BOB" || B2="ARF" || B2="AMRF"),IF((C2="Leap elite" || C2="Leap elite - REGULAR"),TRUE,FALSE),False)

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

Try

 IF((B2="SSAS" ||  B2="BOB" || B2="ARF" || B2="AMRF"),IF((C2="Leap elite" || C2="Leap elite - REGULAR"),TRUE,FALSE),False)

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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