This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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?
Solved! Go to Solution.
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..!
You would think that they would post the M code for these connectors on the connector reference page...that's a problem.
--Nate
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.)
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..!
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.