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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors