Forum Discussion
Dan44
2 years agoHelper I
Auto Refresh Excel File Connected to Semantic Model with Analyze in Excel
Hi all, I have a semantic model which I have used Analyze in Excel to create an Excel Report. So the connection type is the following: While the default is the file gets automatically s...
- 2 years ago
Hi Dan44 ,
You can refresh the Excel files through Power Automate, see this helpful post for more information.
I have just tested this myself an can confirm it still works. The script in question is:function main(workbook: ExcelScript.Workbook) { // Refresh all data connections workbook.refreshAllDataConnections(); }After creating the script, create a PA flow to run a script and you're good to go:
Cheers!
JGroothedde
2 years agoResolver II
Great! Glad i could help!
Dan44
2 years agoHelper I
JGroothedde while this works great for Excel files using Analyze in Excel, my scheduled refreshes aren't working for files using Power Query with a Power Pivot data model configured. I wonder if you have encountered this issue before? Note I created a new post: https://community.fabric.microsoft.com/t5/Service/Auto-Refresh-Excel-Report-with-Power-Pivot-Data-Model/m-p/4023314
Would really appreciate the help