cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vnqt
Helper III
Helper III

Calculated column checking if value exists in another table

Hi,

 

I have 2 different tables

1st Table :  14000 names

2 nd table : 25000 names

I would like to add a column to 2nd Table : True if same value as 1st table , False for missing value

 

Thank you in advance.

 

3 ACCEPTED SOLUTIONS
OEMTomS
Resolver II
Resolver II

AilleryO
Super User
Super User

Hi,

I do agree with @OEMTomS if your absolutely need:want to do it in DAX.

My solution would be using a merge in Power Query between both tables.

Let us know if you need more details

View solution in original post

tamerj1
Super User
Super User

Hi @vnqt 

many options

Table2[Name] IN VALUES ( Table1[Name] )

or

CONTAINS ( Table1, Table1[Name], Table2[Name] )

or

NOT ISEMPTY ( FILTER ( Table1, Table1[Name] = Table2[Name] ) )

View solution in original post

3 REPLIES 3
tamerj1
Super User
Super User

Hi @vnqt 

many options

Table2[Name] IN VALUES ( Table1[Name] )

or

CONTAINS ( Table1, Table1[Name], Table2[Name] )

or

NOT ISEMPTY ( FILTER ( Table1, Table1[Name] = Table2[Name] ) )

AilleryO
Super User
Super User

Hi,

I do agree with @OEMTomS if your absolutely need:want to do it in DAX.

My solution would be using a merge in Power Query between both tables.

Let us know if you need more details

OEMTomS
Resolver II
Resolver II

Hi @vnqt,

 

Think this function is what you're after: https://learn.microsoft.com/en-us/dax/lookupvalue-function-dax 

Helpful resources

Announcements
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!