Power Query - Rows from 1st table in left outer join disappear after expand step where I remove the matching column

PM1985

New Member
Joined
Nov 13, 2011
Messages
7
Dear experts,

I am new in Power Query,

I am doing a left join based on 1st table "INPUT LFB1 KNB1" and second table "Input LFBK/KNBK" based on matching column "LIFNR/KUNR".


1636021750701.png

After 1st step everything seems fine:

1636021867156.png

But then I want to remove the LIFNR/KUNNR from second table and expand the rest:
1636021906706.png

And then the first rows disappear, namely the ones which did not have entries in second table:

This does not make any sense for me since it is a left join, so it should keep all rows from 1st table

1636022587208.png


This is the generated code
1636022682609.png

I thank you very much for any tip on this issue.

Thanks a lot.
Pedro
 

Attachments

  • 1636021671910.png
    1636021671910.png
    159.9 KB · Views: 21

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Just curious, have you done a record count ?
Are you sure it is not just the sort order that has changed and the rows are still there just not at the top ?
 
Upvote 0
Hello Alex,

you are right, for some reason it puts the rows in the bottom for which the left join did not add items from 2nd table. It is strange behavior for me, but the puzzle is solved:-)

thanks a lot.
Pedro
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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