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
vnqt
Helper IV
Helper IV

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
BITomS
Resolver III
Resolver III

AilleryO
Memorable Member
Memorable Member

Hi,

I do agree with @BITomS 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
Memorable Member
Memorable Member

Hi,

I do agree with @BITomS 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

BITomS
Resolver III
Resolver III

Hi @vnqt,

 

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

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.

Top Solution Authors