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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.