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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
rogerthat
Helper I
Helper I

IF/OR For multiple Columns

Hello,

 

I've been having difficulty trying to figure a way to get the outputs from 3 columns if they contain a certain string, I'm bringing these items from other tables since there's no way to create relationships and merging has been giving odd results.

 

So, if any of the types contain "Yes" they should be Accepted, if else Decline

 

IDTYPE1TYPE2TYPE3 EXPECTED OUTPUT COLUMN
1YESYESNO Accept
2YESYESYES Accept
3NONOYES Accept
4NO NO Decline

 

 

TIA

1 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

CNENFRNL_0-1646697568765.png

 

Excel worksheet formula is way too powerful for such a simple question,

CNENFRNL_2-1646446161318.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

4 REPLIES 4
CNENFRNL
Community Champion
Community Champion

CNENFRNL_0-1646697568765.png

 

Excel worksheet formula is way too powerful for such a simple question,

CNENFRNL_2-1646446161318.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

I would assume it would be that route, but for some reason it wasn't calculating correctly just with IF but this worked. 

Whitewater100
Solution Sage
Solution Sage

Hi:

This is a little wild but you can try as a measure:

Status =
var _concat = CONCATENATEX('Data', [TYPE1] &"-"&[TYPE2] &"-"&[TYPE3]&". ")
var _Find = FIND("YES", _concat, 1, BLANK())
return
IF(HASONEFILTER(Data[ID]),
IF(_Find >=1, "Accept", "Decline"))
Syk
Super User
Super User

Create a conditional column and fill out the boxes to match what you need (see screenshot below)

Syk_0-1646419875497.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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