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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.