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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Jose_Perez
New Member

Outer Left Join Power Query not returning joined matches

I am doing an outer left join in power query to bring a value from another table. Join is done fine even when i look at the table inside the cell is the value I want take a look a the image.

Jose_Perez_0-1700251981482.png

 The problem is when its expanded it open a different row with different numbers. see image

Jose_Perez_1-1700252078605.png

has anyone encounter this issue before?

Thank you guys! 🙂

5 REPLIES 5
Syndicate_Admin
Administrator
Administrator

Syndicate_Admin
Administrator
Administrator

That is indeed very bizarre behavior. I have no explanation for it but maybe Ben Gribaudo has.

 

I used an alternative code 

 

    #"Added Custom" = Table.AddColumn(#"Filas filtradas3", "Layout", (k)=> Table.SelectRows(Layout,each [Descripción]=k[Ubicacion])),
    #"Expanded Layout" = Table.ExpandTableColumn(#"Added Custom", "Layout", {"Código Id"}, {"Código Id"})
in
    #"Expanded Layout"

and that worked fine.

 

Syndicate_Admin
Administrator
Administrator

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Hi,

Thaks for your answer. You can find the file here https://docs.google.com/spreadsheets/d/1IbweWkfPkAXU3yt-CJMu4vEA19vZXXME/edit?usp=sharing&ouid=10461... 

 

Please go to PowerQuery Table 'StockReposicion'. You will find the error in the last 2 steps. First the join and then when is expanded. What its seen inside the joined column that contains a table it looks fine. Then when expanded results are different.

 

Thanks for your help.

I hope someone comes up with an explanation.

It doesn't seem to matter what kind of Join you specify; they all seem to work OK with regard to the resultant table, but then provide the incorrect results for both tables when you expand them.

 

Of interest is that if you do a Table.Join (not nested), the result is what it should be.  So the following modification would work:

 

...
    #"Consultas combinadas1" = Table.Join(#"Filas filtradas3", {"Ubicacion"}, Layout, {"Descripción"},  
        JoinKind.LeftOuter),
    #"Removed Columns" = Table.RemoveColumns(#"Consultas combinadas1",{"Descripción", "Sector", "Nivel"})
in
    #"Removed Columns"

 

producing:

ronrsnfld_0-1701463165950.png

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.