logo
search
Pivot Table Issues

How to Automatically Refresh an Excel Pivot Table Weekly

WPS EditorWPS Editor Oct 9, 2026 869 views

Question details

The user needs to automate the weekly refresh process of an Excel pivot table so that updated data is seamlessly available for Power BI.

How to Automatically Refresh an Excel Pivot Table Weekly
Product
Excel, Power Automate, Power BI
Device & OS
not provided
Scenario
A workbook receives weekly data updates and feeds into Power BI, requiring a scheduled refresh workflow.
Observed behavior
The workbook currently requires manual opening and refreshing of the pivot table before Power BI can fetch the updated data.
Before you start

Ensure your Excel workbook is stored in a cloud location such as OneDrive for Business or SharePoint, as Power Automate and Power BI require cloud access to refresh the data automatically.

Solution 1Recommended

Automate Weekly Refreshes with Office Scripts and Power Automate

Create an Office Script to refresh all data connections in your Excel workbook, then trigger this script weekly using a Power Automate scheduled cloud flow.

This method seamlessly bridges Excel and Power BI by automatically refreshing the background data connections on a schedule. It requires your file to be hosted on OneDrive or SharePoint.

1
Create an Office Script in Excel

Open your Excel workbook on the web. Navigate to the 'Automate' tab on the ribbon and select 'New Script'. Enter the code `workbook.refreshAllDataConnections();` and save the script with a recognizable name like 'Refresh Pivot'.

2
Set up a Scheduled Cloud Flow

Log in to Microsoft Power Automate. Go to 'Create' and select 'Scheduled cloud flow'. Name your flow, set the starting date and time, and configure the recurrence to repeat every 1 week.

3
Add the Excel Run Script Action

Click 'New step' and search for 'Excel Online (Business)'. Select the 'Run script' action. Choose the location, document library, and the specific Excel file. Then, select the 'Refresh Pivot' script you created earlier.

4
Save and Test

Save your Power Automate flow. Click 'Test' in the upper right corner to run the flow manually. Verify that the Excel Pivot Table updates and that Power BI subsequently detects the refreshed data.

Automate Weekly Refreshes with Office Scripts and Power Automate
Community Support: For complex workflows involving intricate Power BI integrations or specific Excel connector limitations, consider posting your requirements in the Microsoft Power Automate Community for expert guidance.

Easily Manage and Refresh Pivot Tables in WPS Office

While advanced cloud automation requires specialized ecosystem tools, WPS Office provides a highly efficient, lightweight alternative for everyday data analysis. Open your Excel workbooks, modify source data, and quickly refresh your pivot tables with zero subscription fees.

  1. 1. Open Your Workbook: Launch WPS Spreadsheet and open the workbook containing your Pivot Table.
  2. 2. Select the Pivot Table: Click on any cell inside the existing Pivot Table to activate the PivotTable tools on the ribbon.
  3. 3. Refresh Data: Navigate to the 'PivotTable' tab on the top menu and click the 'Refresh' button. Alternatively, right-click inside the pivot table and select 'Refresh' from the context menu to instantly update it with the latest source data.
Seamless compatibility with Microsoft Excel formats (.xlsx, .xls)Easily create, manage, and instantly refresh Pivot TablesLightweight application that runs smoothly on almost all devicesCost-effective alternative for daily data processing and reporting
microsoft office alternative - wps office

Frequently Asked Questions

Why isn't my Excel pivot table updating automatically?

By default, Pivot Tables do not update in real-time when the source data changes in order to conserve system resources. You must either refresh them manually or use an automation tool like Power Automate to schedule a data refresh.

Can I refresh a locally saved Excel file using Power Automate?

Power Automate primarily interacts with cloud-based files. If your workbook is saved locally on your desktop, you will need to install and configure an On-premises data gateway to connect your cloud flows to the local file, or simply move the file to OneDrive/SharePoint.

How do I ensure Power BI sees the refreshed Excel data?

Power BI will detect the new data upon its own scheduled refresh cycle, provided the underlying Excel workbook has already been updated and saved. Make sure your Power Automate flow is scheduled to refresh the Excel file before the Power BI dataset is scheduled to pull the data.