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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Finnair
Advocate I
Advocate I

How to find matches in two columns with DAX?

I have a situation, where i have a column "A. ALL ROWS" with multiple ISSUE ID:s (An ISSUE ID can exist multiple times). Then I have a column "B. PRODUCT ISSUE ID" where the ISSUE ID is mentioned only few times (once or more).

The column "B. PRODUCT ISSUE ID" is the Primary Column which counts.

I need to mark all the rows with "true" or "false" in Column C, if the B column's ISSUE ID is found in A column.

How would I do it?

 
 

columns.JPG

 

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Finnair 

Add the following column to your table:

C.Match Found = 

IF( 
    Table[A. ALL ROWS] in ALL(Table[B. PRODUCT ISSUE ID]),
    TRUE(),
    FALSE()
)

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
Fowmy
Super User
Super User

@Finnair 

Add the following column to your table:

C.Match Found = 

IF( 
    Table[A. ALL ROWS] in ALL(Table[B. PRODUCT ISSUE ID]),
    TRUE(),
    FALSE()
)

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Thank you! That was quick 🙂

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.