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
Anonymous
Not applicable

DAX VLookup help

Hi.

Can someone help me here. I have two tables. Table1 value should try to match with table two.

Table 1 values found in table 2 then yes else no.

Shree185_0-1620684914682.png

 

Table 1

123456yes
456789yes
741321No
159753No
147852Yes

 

Table 2 
147852 
65 
23 
123456 
456789 
1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

I assume you want to create a new column in Table1

Please check the below picture and the formula for creating a new column.

 

Picture3.png

 

New Column =
IF( Table1[Table 1] in VALUES(Table2[Table 2]), "Yes", "No")
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

I assume you want to create a new column in Table1

Please check the below picture and the formula for creating a new column.

 

Picture3.png

 

New Column =
IF( Table1[Table 1] in VALUES(Table2[Table 2]), "Yes", "No")
 

Hi, My name is Jihwan Kim.


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


ryan_mayu
Super User
Super User

@Anonymous 

you can try this

Column = 
var lookup=LOOKUPVALUE('Table (2)'[column],'Table (2)'[column],'Table'[Column1])
return if(ISBLANK(lookup),"no","yes")

1.PNG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




nilimarodrigues
Helper III
Helper III

Hello,

 

Can you create a relationship between both Table1 and Tabl2 and then add a calculated column in Table 1 using "RELATED" fucntion?

 

Calculated column = if(Table1[Column1]=RELATED(Table2[Column1]),"Yes","No")
 
Kindly give kudos if my reply helps!
 
Thanks

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.