Excel slows down progressively with Power Query

Eugenius

New Member
Joined
Mar 2, 2017
Messages
3
Hello I am a non technical user. I am using Excel 2016 Power Query to pull data from a web API.

The queries deliver 8 x JSON files and I have set the refresh rate to once per minute. The data is very basic financial market data (open,close, high, low etc) so I'm guessing the files are small.

The data is edited in Power Query and then presented in a s/sheet. As the data changes from time to time, the spreadsheet values update and old values overwritten. Some very basic excel calculations are performed on the data.

My PC has i7-7700 CPU @ 3.6GHz - 16gb RAM running Windows 10.

There are two issues:

1. There is a CPU spike every time an API data query happens. Often to 90% CPU usage on Resource Monitor. Why would this be I would have thought such a basic process would not use a lot of system resources.

2. Over time (usually 24-48 hours), Excel performance progressively declines and eventually crashes. If I look at Commit Memory in the Resource Monitor on initial activation of excel and the API pulls, I'll see commit memory of 200,000 Kb. After 24 hours this has increased to 1,500,000 Kb. Excel becomes unresponsive and I can visibly see that the API calls are sluggish.

Is there a way to "clear" memory without shutting down Excel as I link the spreadsheet to another application which can't have the link severed?

Perhaps it's possible to do the API calls in VBA...would this improve performance though I've no experience of writing VBA?

Thanks
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top