Need: Delay Excel Calculations Until Power Query Finishes It's Updates

Sting_NC_USA

New Member
Joined
Sep 18, 2020
Messages
3
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. Mobile
Hello all, long-timer viewer and fan of Mr. Excel, and I've finally taken the leap to join the forum!

Jumping right in, here's a scenario I'd appreciate your help in solving...

I have a highly, formula intense workbook (in Office 2016) with Dashboards and Tracking Data. The workbook is tied to multiple Power Query instances and refreshes upon opening. What's happening is that Excel will run the first query, recalculate, run query two, recalculate, and so forth. There's a ton of unnecessary re-calculating going on (2.5 minutes worth), and I'd like to find a way to halt calculations until each of the queries are complete with their updates.

I've already unchecked the "Enable Background Refresh" option in the Connection Properties window, though I'm at a loss as to how to make this work. I've searched here, Google searched and haven't found anything yet.

Any ideas? Thanks!
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
un-check all Refreshes and do that manually
or your queries are not optimised well
 
Last edited:
Upvote 0
Thanks Sandy, I need the document to refresh, and the queries do run quickly. The issue is that excel recalculates everything in between each individual query. I'm looking to delay the recalculation portion until all queries have run, so that the calculations only run once. Another way of saying it: It would be great if autocalc could momentarily be turned off, then all queries run, then autocalc turns back on.

Hope that helps to clarify the issue.
 
Upvote 0
so you will need vba to define which one (connection) you want to refresh right now and then refresh all but vba is not my story, sorry
each query is from different tables or some using the same table?
 
Upvote 0
Thanks. My short-term solution is to disable all refresh items, attache a macro that disables formula calculations, runs each query one at a time, then turns formula calculations one time. I'm just trying to simplify the user experience. Have a great weekend!
 
Upvote 0
I saw what you read, maybe it will help
Good luck
Have a nice day

btw. if you turn off all refreshes in connections and will use right click on result table or pivot it will be the same what you said above but without vba, it will refresh selected table/pivot only
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,621
Messages
6,179,929
Members
452,949
Latest member
beartooth91

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