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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Refreshing report dataset and publishing to web with Powershell

Hello,

 

I am looking for a way to automatically refresh a datasource within a Power BI desktop report, and then publish it to web.

 

To give a bit of context, I have 10 reports, all identical but using different datasets. They are updated with new data once per week.

The datasets are all excel files, stored in a regular file system.

I already have a powershell script that archives the old dataset file, and replaces it with the new one. But I still need to manually open the report, click on "Refresh" and then on "Publish" and select the correct workspace, then replace the current report.

 

Since PowerBI is Microsoft, I thought there would be a way to do this with Powershell cmdlets, but so far I haven't found anything valuable.

 

Is it possible to do this with Powershell?

 

Thanks

1 ACCEPTED SOLUTION
v-jiascu-msft
Employee
Employee

Hi @Anonymous,

 

I'm afraid we can't do it in the Desktop. Actually, there is an elegant way. You can publish the reports to the Service and set up schedule refresh with a data gateway. Finally the refresh job will be done automatically. Please refer to power-bi/refresh-data and refresh-scheduled-refresh.

 

Best Regards,

Dale

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

View solution in original post

1 REPLY 1
v-jiascu-msft
Employee
Employee

Hi @Anonymous,

 

I'm afraid we can't do it in the Desktop. Actually, there is an elegant way. You can publish the reports to the Service and set up schedule refresh with a data gateway. Finally the refresh job will be done automatically. Please refer to power-bi/refresh-data and refresh-scheduled-refresh.

 

Best Regards,

Dale

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.