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
yd83000
New Member

Power Query loading time

Hi,

My apologies in advance if my problem seems obvious!
I'm using Excel's Power Query (and not Power BI's).
I have two questions:

- When you set up a query in Power Query, the preview of the data is updated at each new step. However, even though it's a preview, for some steps it looks like Power Query is applying all the data. As I'm working with very large data, these operations can take a long time, especially for joins/fusion/merge. But as we're still in Power Query, we don't need these steps to be performed on all the data. Is there a way of forcing Power Query not to perform these steps on all the data? The aim is to save time in Power Query, because once the query has been set up, all these steps are performed on all the data when the data is loaded into a pivot table in Excel, for example.

- More generally, I sometimes have problems with data loading times in Excel (in a pivot table for example), which can be particularly long (over an hour). Sometimes Excel freezes and closes itself. Is there a way of optimising this and preventing Excel from freezing? Is it a memory problem?

Thanks for your help!

1 REPLY 1
collinsg
Super User
Super User

Good day @yd83000 ,

Here are a couple of thoughts. An approach some people use is to create a parameter "Debug" which may be set true or false. Then, early in the script use this code (I assume your previous step is called "Source").

= if (Debug = true) then Table.FirstN(Source,30) else Source

 This will load the first 30 rows if Debug is true, otherwise it will load all the data.

 

Another suggestion is to check the option "Never allow data previews to download in the background" - this option may be set globally or for the current workbook.

collinsg_0-1687996401696.png

I've only partially addressed your questions but hope this helps.

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.

Top Solution Authors