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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors
Top Kudoed Authors