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
shamilka
Frequent Visitor

Merging two tables without duplicates based on certain data

I need to join two tables (add the Purchose order column to the table 1) by matching part number and serial number and copy the column with the corresponding purchase order number in table 2.

 

Note: The column names of the part number and the serial number is different in two tables. 

 

Table 1

 

Part number (PN)Serial Number (SN)Lot noQuantity
AXA1101
AYA1112
AZA1122
BJA1131
BKA1141
BHA1151

 

Table 2

 

Part numberSerial NumberPurchase Order
AX1001
AY1002
AZ1003
BJ1004
BK1005
BH1006

 

Desired Output:

 

Part numberSerial NumberLot noQuantityPurchase Order
AXA11011001
AYA11121002
AZA11221003
BJA11311004
BKA11411005
BHA11511006

 

Thank you

1 ACCEPTED SOLUTION
m_dekorte
Super User
Super User

Hi @shamilka,

 

You can use the Merge Queries option from the ribon. In the dialog that appears hold down the CTRL key as you select the matching column pairs in both tables. Note that there is a small idenification number visible this needs to correstpond for each pair that belongs together (see blue arrow).

 

m_dekorte_0-1711446414371.png

I hope this is helpful

View solution in original post

1 REPLY 1
m_dekorte
Super User
Super User

Hi @shamilka,

 

You can use the Merge Queries option from the ribon. In the dialog that appears hold down the CTRL key as you select the matching column pairs in both tables. Note that there is a small idenification number visible this needs to correstpond for each pair that belongs together (see blue arrow).

 

m_dekorte_0-1711446414371.png

I hope this is helpful

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.

Top Solution Authors