Question Query speed

mr2bart

Board Regular
Joined
Dec 18, 2014
Messages
57
Hi,

Something strange when using Queries:
I found a huge speed difference between these 2 situations :
Situation1:
- I make a first query "query1" and I do not load the result on a worksheet1
- I make a second query "query2" which call the "query1" by basically Source1 = query1 and do some other operations
Situation2:
- I make a first query "query1" and I load the result on a worksheet
- I make a second query "query2" which call the TABLE "query1" loaded on worksheet1 by basically Source1 = Excel.CurrentWorkbook(){[Name="Query1"]}[Content]
The first situation is very long to get the refresh, even time to get a coffee and back. The second one is only few seconds (refresh Query1 then Query2)
So for the moment I use Situation2 but I loose the dependencies.
Does somebody knows why Situation1 is much longer ??
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.

Forum statistics

Threads
1,223,577
Messages
6,173,163
Members
452,503
Latest member
AM74

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