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
sv12
Helper III
Helper III

DAX Help

Hi,

 

I am new to DAX and I am seeking help with the below usecase:

I want to know if column 2 value exists in column 1. And potentially use this as a slicer or column filter in power query.

contains.PNG

I appreciate your help.

 

Thanks

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

Column 2 is in 1 = IF(  Table1[Column2] IN ALL(Table1[Column1]), "Yes", "No")

Also

Column 2 is in 1 = IF(  Table1[Column2] IN DISTINCT(Table1[Column1]), "Yes", "No")

View solution in original post

1 REPLY 1
HotChilli
Super User
Super User

Column 2 is in 1 = IF(  Table1[Column2] IN ALL(Table1[Column1]), "Yes", "No")

Also

Column 2 is in 1 = IF(  Table1[Column2] IN DISTINCT(Table1[Column1]), "Yes", "No")

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.