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

DAX Lookup

Hi,

 

I am trying write a Calculated column for below logic:

 

"If a value in Column 2 present anywhere in Column 1, return Yes else No"

 

Example:

Column 1 Column 2Result
16No
28No
31Yes
42Yes
55Yes

 

I appreceate any help!

 

Thanks

1 ACCEPTED SOLUTION
edhans
Super User
Super User

try this:

 

 

Exists = IF('Table'[Column 2] in ALL('Table'[Column 1 ]), "Yes", "No")

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Super User
Super User

try this:

 

 

Exists = IF('Table'[Column 2] in ALL('Table'[Column 1 ]), "Yes", "No")

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

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.