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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

Merge/Join and Query Folding

Hi all

 

I am trying to fold a query which joins two tables

I have attempted Table.NestedJoin and Table.Join, trying both LeftOuter and Inner.

 

When I look at the diagnostic steps, both left and right queries are folded indepently and then handed over to the mash up evaluator. No join statemen is shown at all.

 

I am using the Redshift connector.

 

From investigations, I believed NestedJoin would not fold the "merge" section but will return to folding at "expanded column" but this is not the case. Artivles suggested to use Table.Join to create the native SQL but this did not work.

 

https://towardsdatascience.com/query-folding-in-power-bi-devil-is-in-the-detail-d564ab0cb32 - this site successfully used Table.Join

 

Is this possible through the Redshift connector?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks Alexis. They were coming from the same source.

 

My issue was that  I changed column datatype on the table I was joining. Removing this step allowed folding to occur. I changed the datatype after that step! All fixed..!

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

You would think that they would post the M code for these connectors on the connector reference page...that's a problem. 

 

--Nate

AlexisOlson
Super User
Super User

Just in case you're missing something simple, are the two tables coming from the same source? (Query folding isn't possible if the two queries can't be combined into a single SQL statement evaluated at a single source.)

Anonymous
Not applicable

Thanks Alexis. They were coming from the same source.

 

My issue was that  I changed column datatype on the table I was joining. Removing this step allowed folding to occur. I changed the datatype after that step! All fixed..!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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.