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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

expanded Column (Table.ExpandTableColumn) breaks query folding

Hi, So I am extracting data from Sql database and my main goal is to perform each step in power query WITHOUT BREAKING THE QUERY FOLDING. But if you lok at the screenshots below it breakes the query while expanding the column using Table.ExpandTableColumn function. can anyone guide me whats the issue here and how to resolve these merginf queries and expanding columns in such a way that it does not break query folding.

PFB the screenshot of step where it breaks the query folding,

Saadii_360o_1-1658525498757.png

 

PFB the m code,

Saadii_360o_0-1658525237654.png

Thanks in advance.

2 REPLIES 2
edhans
Community Champion
Community Champion

Expanding the column should work unless there is some unusual data type that is being expanded. If you don't expand the column, the Merge will actually break folding, but it is fixed on the expand operation.

 

However, if the table you are merging isn't folding, that will break folding too. So if the NewColumn you added in SaleItemProd broke folding, or the query SaleItemProd broke folding earlier, that is the issue. You cannot continue folding unless both the existing and merged queries were folding at the point of the Merge.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
edhans
Community Champion
Community Champion

@Anonymous did any of this help? Did you confirm that both tables in the merge operation were folding before the merge?



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

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.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.