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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Saadii_360o
Helper I
Helper I

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
Super User
Super User

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

@Saadii_360o 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.