Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
AustinMB
New Member

Automate PQ Refresh?

I have a connection from a Power BI semantic model to my Excel work book via Get Data --> from power platform--> from Power BI.

 

the semantic model refreshes 6am daily. I'd like to schedule and automate the connection refresh on Sunday to prepare Monday morning (refreshes are very slow company wide on Monday). How can I schedule a once a week refresh (preferably it refresh even if my computer is off, that's why I'm concerned about scheduling via connection properties).

 

I've tried saving the excel to a share point and using a cloud flow to trigger an office script to "open the workbook" online. (I have connection properties set to refresh on open. But it's not refreshing.

 

anyone know how I can schedule the connection refresh so it takes place whether I'm online or not? Thanks!

2 REPLIES 2
v-sshirivolu
Community Support
Community Support

 

Hi @AustinMB ,
Thank you for reaching out to Community Forum.
I understand you would like your Excel workbook, which is connected to a Power BI semantic model, to refresh automatically once a week, even when your computer is off. Currently, Excel Online cannot fully refresh connections to Power BI semantic models, and the refresh on open feature only works in desktop Excel. As a result, your current method using SharePoint and Power Automate with Office Scripts may not consistently trigger the refresh. The most effective solution is to schedule the refresh at the Power BI dataset level within the Power BI Service. You can publish your semantic model to the service and set up a weekly refresh. In Excel, you would then connect to this dataset through Get Data From - Power Platform - From Power BI. This ensures your workbook displays updated data each time it is opened, and the refresh occurs in the cloud, so your computer does not need to be on. Alternatively, if you wish to keep the refresh process within Excel, Power Automate Desktop could be used, but this requires your machine to be running at the scheduled time. Overall, scheduling the refresh in Power BI Service is the most reliable approach for your needs.

Refer to these Microsoft documentation links:
Use OneDrive for work or school links in Power BI Desktop
Schedule a refresh for a dataset in Power BI

Best regards,
Sreeteja.

 

Aala_Ali
Resolver II
Resolver II

Hi @AustinMB 

Try to Schedule a Sunday refresh for your Excel workbook that’s connected to a Power BI semantic model using Power Automate + Office Scripts.

  1. Store the workbook on SharePoint/OneDrive.
  2. In each PivotTable: PivotTable Options → Data → Save source data with file ON (so Monday opens are instant).
  3. Create an Office Script that calls workbook.refreshAllDataConnections(), refreshes all PivotTables, and recalculates (script below).
  4. Build a Power Automate cloud flow (Recurrence → Sunday) to Run Script on the file. The file auto-saves server-side after the refresh.
  5. Ensure the flow user has Build access on the dataset and edit rights on the file.

function main(workbook: ExcelScript.Workbook) { workbook.getApplication().setCalculationMode(ExcelScript.CalculationMode.automatic); workbook.refreshAllDataConnections(); workbook.getWorksheets().forEach(ws => ws.getPivotTables().forEach(p => p.refresh())); workbook.getApplication().calculate(ExcelScript.CalculationType.full); }

 

If Office Scripts are disabled, run the refresh on a VM with Power Automate Desktop (unattended) to open Excel → Refresh All → Save → Close on Sunday.

If this helps, please mark as Solution and drop a kudos so others can find it faster.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.