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

Merge Columns based on one column from one table and two from the second

Hi,

 

I'm trying to merge two tables that has a unique id for each, but they do not match. I have three other columns that contain the unique id from the first table, but the ID differs on some because of different customers. Does anyone have a good solution to have to smoothly merge these two tables in power query? I want to join them so that I can get deal id to the first table.

 

Sample table 1:

idname
1001Store 1
1002Store1
1003Store 3
1004Store 3
1005Store 6
1006Store 6
1007Store 8
1008Store 9
1009Store 10
1010Store 11
1011Store 12
1012Store 12
1013Store 14
1014Store 15
1015Store 16
1016Store 17
1017Store 18
1018Store 19
1019Store 20
1020Store 21
1021Store 21
1022Store 23
1023Store 24
1024Store 25
1025Store 25
1026Store 27
1027Store 28
1028Store 29
1029Store 29

 

 

dealernamevehicleidwarranty idcustomer id
1Store 1100210011001
3Store 25  1024
4Store 61006  
10Store 12  1012
11Store 21102110201020
29Store 29102810291029
2 REPLIES 2
dax
Community Support
Community Support

Hi PBISea,

It seems that you want to merge two tables, what is your expected output of merge result? If possible, could you please inform me more detailed information (such as your sample data and your expected output)? Then I will help you more correctly.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

edhans
Super User
Super User

You are going to have to explain clearly how you would expect this join to work. If they both have an ID field, but they aren't the same ID, they won't join. Even a fuzzy merge won't work well here. That is for merging things like North Carolina and NorthCarolina.

 

You could create a Transformation Table for the fuzzy merge if you want to hand point ID1 to ID2. See this article for a really good overview of how that works.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

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.

Top Solution Authors
Top Kudoed Authors