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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
mike_asplin
Helper V
Helper V

Very odd merge behavior in power Query

I have a look up table with a row for "Sales Enquiry" as below which is called Enquiry Status Reason Funnel

 

Screenshot 2026-02-23 125634.png

 

In my main table I am using this merge and expansion

 

 #"Merged Queries6" = Table.NestedJoin(#"Filtered Rows3", {"Enquiry Status Reason (CRM)"}, #"Enquiry Status Reason Funnel", {"Enquiry Status Reason (CRM)"}, "Enquiry Status Reason Funnel", JoinKind.LeftOuter),
    #"Expanded Enquiry Status Reason Funnel" = Table.ExpandTableColumn(#"Merged Queries6", "Enquiry Status Reason Funnel", {"Enquiry Type", "Funnel Bucket", "Funnel Bucket Description", "Enquiry Status Reason Group"}, {"Enquiry Type", "Funnel Bucket", "Funnel Bucket Description", "Enquiry Status Reason Group"}),

 

This seems to work fine for all the other rows in the look up table, but this particular one generates this

Screenshot 2026-02-23 125848.png

 so it has icked up one column correctly, but al lthe other columns are blank???  i did original have this looking up form 2 tables, but have completely deleted the 2nd table. Its like it is remembering the old table and just not reading the code correctly.  i've rebuilt it severla times.

 

Any clues?

1 ACCEPTED SOLUTION

I did check for duplicates and the extra spaces. If it had no columns that would make sense.  As i said doing a complete refresh seemed ot clear its head and it was fine. Thanks for response.  

View solution in original post

7 REPLIES 7
v-echaithra
Community Support
Community Support

Hi @mike_asplin ,

Thank you for confirming that issue has been resolved. If further assistance is still required. We are available to support you and are committed to helping you reach a resolution.

Best Regards,
Chaithra E.

Natarajan_M
Solution Sage
Solution Sage

Hi @mike_asplin , 


  1. If one column is expanding correctly while other columns are not populating as expected, it could be due to duplicates in the Enquiry Status Reason Funnel table. Check for any rows with the same key "Sales Enquiry" that have null values in other columns. In Power Query's preview mode, it will restrict the view to the first 1,000 rows, so make sure to check the source data.

    NattyM_0-1771853922527.png

     

    NattyM_1-1771853943416.png

     

    NattyM_2-1771853985104.png

     

  2.  

    Additionally, verify if there are any trailing spaces in the key values in both tables. Ideally, the key should be "Sales Enquiry," but it’s worth checking for variations like "Sales Enquiry ".

     

  3. You mentioned that Power BI is referencing the old table. Please review your Power Query, as it might be related to earlier references you made. If you could share the complete Power Query, we would be able to diagnose the issue more effectively.

Thanks .

If this response was helpful in any way, I’d gladly accept a kudo.
Please mark it as the correct solution. It helps other community members find their way faster

I did check for duplicates and the extra spaces. If it had no columns that would make sense.  As i said doing a complete refresh seemed ot clear its head and it was fine. Thanks for response.  

@mike_asplin  , whats the fix to this issue ?

 

close the pbix, reboot reopen and fixed it

rohit1991
Super User
Super User

Hii @mike_asplin 

 

Since one column expands correctly and others return null, the merge is partially matching but not fully resolving the lookup row.

Fix:

  1. In both tables, set join column explicitly to Text.

  2. Add a clean column for merge:

Text.Upper(Text.Trim([Enquiry Status Reason (CRM)]))
  1. Use this cleaned column in the merge on both sides.

  2. Refresh preview (sometimes Power Query cache holds old structure).

 


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

I did a refresh and fixed itself before I tried your fix but much appreciated 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.