Power Query table merge

TDC21

Board Regular
Joined
Mar 31, 2017
Messages
97
I have two tables, one is for dimensional inventory on hand, the other for dimensional inventory purchased. I am trying to find a way to create 1 table that will combine data from both but no luck so far. For example,


ON ORDERON HANDDesired Result
PART_IDLENGTHWIDTHQTYPART_IDLENGTHWIDTHPART_IDLENGTHWIDTHON HANDON ORDER
15000SA5167051886215000SA51670350278115000SA516705188612
15000SA5167051899215000SA516708989115000SA51670518992
15000SA51670498106215000SA5167051886115000SA516704981062
15000SA51670498112115000SA516704981121
15000SA516703502781
15000SA5167089891

<colgroup><col><col><col span="2"><col><col><col><col span="2"><col><col><col><col><col><col></colgroup><tbody>
</tbody>


Not all part ID's from one table are in the other, the length and width values are also variable between each table. My first thought was to merge both tables on Part ID, Length, and Width, as a Full Outer Join (all rows from both) but I end up with fewer rows than are in either table so I am pretty sure this must be incorrect.

Any thoughts are greatly appreciated, thanks
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Full outer join und right to me too. Another approach is to create a "type" column in each source table (i.e. On hand, on order all the way down), append the tables and then pivot the data.
 
Upvote 0
Thanks Matt, the Type column worked great, going to have to read up on appending queries but it let me join tables without duplicate or shared rows so a few extra if statements were enough to create consolidated rows that I was able to group off of. (y)
 
Upvote 0

Forum statistics

Threads
1,215,682
Messages
6,126,196
Members
449,298
Latest member
Jest

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top