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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Refresh Excel Workbook published automatically on demand

Hello experts,

 

We have a CSV file present on sharepoint. We have an excel file uploaded on Power BI Service which is connected to that CSV through get data approach.

We want an automated approach where we can refresh the excel on demand as and when csv file is been updated.

 

For eg. CSV file is been updated on sharepoint so we want our excel to get updated with the csv data in automated approach on demand.

8 REPLIES 8
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

There are a few ways you can refresh the Excel data connected to a CSV file on Sharepoint in an automated way:

  • One option is to use the Power BI API to refresh the data. You can use the API to trigger a refresh of the data in your Power BI dataset, which will update the Excel file with the latest data from the CSV.
  • Another option is to use Power Automate (previously known as Microsoft Flow) to set up a flow that will trigger the data refresh when the CSV file is updated. You can set up a flow that monitors the Sharepoint folder where the CSV file is located, and when it detects a change to the file, it will trigger the data refresh in Power BI.
  • Alternatively, you can use the Power BI REST API to refresh the dataset. You can use the API to refresh the dataset on demand, or you can set up a scheduled refresh to regularly update the data at a specific time.

It's important to note that in order to use the Power BI API or Power BI REST API, you will need to have a Power BI Pro license. If you don't have a Power BI Pro license, you can still use Power Automate to trigger a data refresh, but you will need to have a Power Automate license.


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hello @v-henryk-mstf 

 

Thank you so much for your suggestions.

 

We can refresh the "dataset" from APIs in Power BI. But we have no dataset created for the excel in Power BI Service because we have uploaded a excel file in Power BI Service which is connected to sharepoint csv and in Service there is no dataset created for this excel.

 

Can you please guide us further ?

 

Thank You!

Have a look at this new capability:

https://powerbi.microsoft.com/en-us/blog/announcing-connected-excel-tables-from-power-bi/

------------------------------------------------
1. How to get your question answered quickly - good questions get good answers!
2. Learning how to fish > being spoon-fed without active thinking.
3. Please accept as a solution posts that resolve your questions.
------------------------------------------------
BI Blog: Datamarts | RLS/OLS | Dev Tools | Languages | Aggregations | XMLA/APIs | Field Parameters | Custom Visuals
Anonymous
Not applicable

Hello @otravers ,

 

Thank you for the suggestion.

If we go with analyse in excel it will create a pivot table. We don't want a pivot table.

We want to get our workbook refreshed automatically on demand.

You'll have to test whether a Power Query refresh can be automated via Excel OfficeScripts, last time I checked that wasn't yet the case. If it doesn't work, you want to try Power Automate Desktop.

------------------------------------------------
1. How to get your question answered quickly - good questions get good answers!
2. Learning how to fish > being spoon-fed without active thinking.
3. Please accept as a solution posts that resolve your questions.
------------------------------------------------
BI Blog: Datamarts | RLS/OLS | Dev Tools | Languages | Aggregations | XMLA/APIs | Field Parameters | Custom Visuals
Anonymous
Not applicable

Hello @otravers ,

 

Thank you so much for your suggestion.

I tried Power Query Refresh through Office scripts but it is not working yet and Power Automate Desktop flow is not in our context.


Do we have any other way to achieve it ?

I'd try generating an Excel table using Power Automate but that might imply deleting/recreating the workbook rather than "refreshing" it.

------------------------------------------------
1. How to get your question answered quickly - good questions get good answers!
2. Learning how to fish > being spoon-fed without active thinking.
3. Please accept as a solution posts that resolve your questions.
------------------------------------------------
BI Blog: Datamarts | RLS/OLS | Dev Tools | Languages | Aggregations | XMLA/APIs | Field Parameters | Custom Visuals
otravers
Community Champion
Community Champion

You can do this in a roundabout way, using Power Automate if you go via a Power BI dataflow or dataset refresh, then Analyze in Excel. I'm not sure Power Query refreshes in Excel can be automated, last time I checked it wasn't working via OfficeScripts but I think they planned to add support for it.

------------------------------------------------
1. How to get your question answered quickly - good questions get good answers!
2. Learning how to fish > being spoon-fed without active thinking.
3. Please accept as a solution posts that resolve your questions.
------------------------------------------------
BI Blog: Datamarts | RLS/OLS | Dev Tools | Languages | Aggregations | XMLA/APIs | Field Parameters | Custom Visuals

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors