cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sv12 Helper II
Helper II

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

Accepted Solutions
Super User II
Super User II

Re: DAX Lookup

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
Super User II
Super User II

Re: DAX Lookup

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

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Top Solution Authors
Top Kudoed Authors