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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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