Power Pivot Table - can't refresh if source file open

keker

New Member
Joined
Apr 1, 2014
Messages
5
Hello,

I don't have much knowledge about Power Pivot, and I don't use it in any way that we could call advanced or even basic. I only discovered that I can easily link a PowerPivot data model to several MS Excell Workbooks by SQL Query, and then use the model as a source to Pivot Table in my Excel. And it's more efficient than linking it cell to cell or in any other way that I know.
My problem is: we work in a 6-7 people, each of us has his/her own Excel workbook, that I use as a source to one PowerPivot model (by very simple SQL Query), that I later use as a source to Pivot Table. If all source workbooks are closed, I can refresh the Pivot Table without any problem. But if anyone has his workbook open, the Pivot Table freezes, and I have to kill Ms Excel process. Is there any way to solve this problem?

The SQL Query i use looks more or less like that:

SELECT [DataModel$].* FROM [DataModel$] WHERE (NOT(([Exists] = 'No')) OR [Exists] IS NULL)
UNION ALL
SELECT * FROM `File`.[Sheet$] WHERE (NOT(([Exists] = 'No')) OR [Exists] IS NULL)
UNION ALL
SELECT * FROM `File`.[Sheet$] WHERE (NOT(([Exists] = 'No')) OR [Exist] IS NULL)

Can it be altered in any way to avoid freezing? Either by refreshing from open file, or if it's not possible, by skipping the open file with a MsgBox saying "File is open"?

Thank You
Maciek
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,225,653
Messages
6,186,200
Members
453,340
Latest member
yearego021

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