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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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