Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
Microsoft Employee
Microsoft 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
Microsoft Employee
Microsoft 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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.