Refreshing Data Connection not Refreshing connected Pivot - excel

I have a workbook that connects to several different external sources.
I have code in place that individually refreshes each connection. They all have Enable Background Refresh unchecked.
I have Pivot Tables connected to each of these sources. And while refreshing the connection updates these PT's usually, today I had one Pivot that did not do so.
Do I need to add code to individually refresh each pivot, too? I'd like to avoid that if it's uneccesary, because otherwise I'd be refreshing each pivot twice (once when the connection updates, and then again immediately after). Not trying to add extra delays to the already long refresh process.
Thoughts? Thanks!

Related

Power Pivot Refresh Errors

I have a power pivot model that links its data to an external excel document. Every month I have to update the excel document with new data coming in.
In the past when trying to update it would somehow "forget" it was connected to that data source. But by re-establishing the connection I could refresh.
This month it again wouldn't refresh but re-establishing the connection didn't work. I was wondering if the issue was with the excel document so I tried to re-upload the document as a new table and it worked fine, I even managed to refresh it.
I can't use that new one, though, because it would take way too long to re-establish all the connections and pivot tables
So, to be clear, when I refresh the table I get the following error message.
But when I try to test connection I get this error message.
What could be causing it not to refresh if the connection is there?
Edit: When I click on error details it tells me to check the connection.

Excel Power Query Refresh While Co-Authoring - Can't Merge Changes

I have a Power Query which summarizes some data on user specific sheets into a master sheet from several user specific sheets that are edited using coauthoring via one drive. The source of the query being refreshed is the workbook itself and it is refreshed by hitting the refresh button in the UI. It works fine if users are not currently editing cells but if one of the users is mid-edit in a cell and the refresh runs on the query the user is presented with a message that their changes cannot be merged and that they must discard or save a copy when they try to leave the cell. Is it possible to prevent this from happening?
I brought this issue up to MS support and was told this is likely a bug in need of a hotfix. Excel Online does not support PQ, so when PQ refreshes and co-authoring is happening, it triggers the error. Hoping an update rolls out in the near future for this because it seems like such a huge oversight.

Refreshing a Pivot Table connected to SSAS in Excel refreshes the whole workbook

We have a user with an Excel workbook with multiple pivot tables connected to SSAS.
We've found that when we do a Refresh on a pivot table (not Refresh All), it updates all pivot tables in the workbook.
This is causing issues as it takes too long to refresh the whole workbook.
Any idea why?
I believe that Refresh on a pivot table will refresh all data dependent on that SSAS connection. So one solution for you would be to make multiple connections to the same SSAS source rather than building all the pivot tables off the one connection.
This link explains it nicely:
https://www.powerpivotpro.com/2010/08/pivot-refresh-vs-update-is-there-a-real-difference/
Basically, as MattClarke mentioned, refreshing in Excel refreshes all pivot tables connected to that connection, whereas Refresh All will refresh all connections (you might have a connection to 2 cubes for example).

How to ensure that data connected to external source has been refreshed

I have created an excel file which acts as a daily reporting tool and accesses data from an Access database. I have selected the option of refreshing data when workbook opens for all connections. However, today in the morning, when I opened the workbook, only a part of the data got refreshed. I suspect that it might be due to the fact that I was using wireless internet. A second attempt at refreshing the data was successful so there is nothing wrong with the data sources
So my question: is it possible to receive some sort of a confirmation when all the data has been refreshed? I thought about making a query in Access which returns today's date and then connecting this query to a cell in Excel. However, this does not solve the problem because this query result might get updated but the others might not

Pivot Table does not refresh automatically after refreshing the OLAP cube. Excel 2007

I have a workbook connected to an external OLAP cube. Previously, when I connected to the external data source and then refreshed all, every pivot table would refresh and show the new data. Now, if I connect to the data source and refresh the pivots, the pivots do not update with new data. The only way I can get it to update is if I manually click in one of my filters then click ok. For some reason, this triggers a connection to the cube and the pivot refreshes with the new data. Any idea why this might be happening? I'm at a loss and it's extremely time consuming to have to manually click in each pivot. Thanks.
I got around this by making my own refresh button that just sends simple queries to the cube for each pivot I wanted to be refreshed and that solved the issue.

Resources