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
soedholm
Regular Visitor

match string values in two diffrent tables

Hi,

 

I have two tables what each have a column for email. I'd like to "match" the emails to get country value from the second table into the first. Situation is:

 

Table A:

email1

 

Table B:

email2

country

 

I'd like to say "If Email2 in Table B matches Email1 in Table A, add value in Table A for country". Is this possible?

 

3 ACCEPTED SOLUTIONS
Vvelarde
Community Champion
Community Champion

hi @soedholm

 

Go to Edit Query -- Merge Query

 

Sin título.png+

 

Step 2: Click on expand

 

2.png

 

The result is 

 

3.png




Lima - Peru

View solution in original post

v-sihou-msft
Employee
Employee

@soedholm

 

You can also use DAX to achieve your goal. Just add the calculated column in table A and use LOOKUPVALUE() to get the country column.

 

Country Column = LOOKUPVALUE(TableB[Country],TableA[Email1],TableB[Email2])

 

Regards,

View solution in original post

3 REPLIES 3
v-sihou-msft
Employee
Employee

@soedholm

 

You can also use DAX to achieve your goal. Just add the calculated column in table A and use LOOKUPVALUE() to get the country column.

 

Country Column = LOOKUPVALUE(TableB[Country],TableA[Email1],TableB[Email2])

 

Regards,

Vvelarde
Community Champion
Community Champion

hi @soedholm

 

Go to Edit Query -- Merge Query

 

Sin título.png+

 

Step 2: Click on expand

 

2.png

 

The result is 

 

3.png




Lima - Peru

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.