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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
olops2002
New Member

IF OR function

Hi Everyone,

Please i am trying to use IF(OR) function to turn the values of  a new column to "vg" if the values of column 1 is "vot", or column 2 is "umc" or column 3 is "medical case"  etc.Its seems if(or) function here iun power bi only considers 2 columns if i am correct. Any help will be appreciated

 

Seyi

1 ACCEPTED SOLUTION
Nishudhan
Frequent Visitor

Hi ,

As you know OR function can take only 2 conditions . So for the more than two condition you need to use "||".like this,

IF(OR) = IF('Base Data'[Bill Type] = "vot"||'Base Data'[Bill Type]="umc"|| 'Column3'="medicalcase","Yes","No")

View solution in original post

3 REPLIES 3
olops2002
New Member

HI Nishudhan,

 

Thanks for your support..I will try it now and revert on my findings.

 

Thanks once again Nishudhan.

Nishudhan
Frequent Visitor

Hi ,

As you know OR function can take only 2 conditions . So for the more than two condition you need to use "||".like this,

IF(OR) = IF('Base Data'[Bill Type] = "vot"||'Base Data'[Bill Type]="umc"|| 'Column3'="medicalcase","Yes","No")

HI Nishudhan,

You are the best.I t works so well. Thanks for the knowledge shared.

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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