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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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