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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
pawlowski6132
Helper V
Helper V

Model Grows Exponentially - Why???

In Power BI, I injest an Excel Workbook that's 259KB. I do some minor Power Query edits and the model grows to 500MB in size and takes forever to load to the Editor after "Close and Apply. Only 1600 rows are being loaded.

 

The PBIX is only 219KB which, is to be expected.

 

Where should I start to look? Is there an approach to evaluate what's going wrong?

1 ACCEPTED SOLUTION
Jimmy801
Community Champion
Community Champion

Hello @pawlowski6132 

have you been able to solve the problem with the replies given?

If so, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

All the best

Jimmy

View solution in original post

7 REPLIES 7
Jimmy801
Community Champion
Community Champion

Hello @pawlowski6132 

have you been able to solve the problem with the replies given?

If so, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

All the best

Jimmy

As a prelude, the buffer function works and produces noticeably faster queries. However, they were still too long for me. I ended up with a Python script solution. Much leaner query and worked super fast.

Jimmy801
Community Champion
Community Champion

Hello @pawlowski6132 

 

This is probably caused by an Table.AddColumn or a Table.SelectRows. The reason for this is that depending on how your query works, the Excel-content is queried multiple time, mabe even for every new row. 

To solve this just surround your second step (where you are accessing the sheet-table) with a Table.Buffer

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

 

Thanx for the feedback. Let me check that approach.

 

Would it be different if datasource was SQL DB or CSV File do you think?

Hello @pawlowski6132 

 

i know that some datasources are chached, and therefore there should be no problem (SQL should be part of that). CSV-files should be all the same. Ok... check it and let us know

 

all the best

 

Jimmy

One more quick question, I've been looking high and low for some examples using the Table.Buffer syntax. I just can't seem to find an example that I can use in my code that works. FWIW, here's my query. I will also be trying to lad the dataset in to Azuure SQL or load in CSV to see if that improves things but, would prefer to leave in Excel.

 

I'll be working on this this afternoon so, will hopefully get somewhere.

 

 
 

 

delete.JPG

Hello @pawlowski6132 

 

for sure CSV would be faster to query.

just put a Table.Buffer arround your third step like:

#"Changed Type" = Table.Buffer(Table.TransformColumnTypes(Table1_Table,......

Don't forget to put a ")" at the end of the step

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.