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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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