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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
sbeste
Frequent Visitor

How to manually refresh several datasets at once

I'm evaluating Power BI for my company. I run a data warehouse that has 70 workbooks that have been published and need to be refreshed every month. 

  1. I have to refresh all 70 at one time as, say, "The November data".
  2. I can't do this on a schedule because sometimes some of the data is late; sometimes it's early and managers want it ASAP.
  3. But I don't want to sit there and manually launch 70 refreshes. I need a way to refresh them all as a single manually-launched batch job.

How?

 

Thanks - Steve

1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi @sbeste

 

What I would suggest doing is to use the Power BI Refresh API, and create one PowerShell script per data refresh.

Then you could create a batch file that would then go and call all the PowerShell scripts?

I am not an expert with PowerShell and scripting, so there might be a more elegant way, but the above should work.

 

Here is a blog post from Chuck on the Power BI team, who details how to get it working.

https://blogs.msdn.microsoft.com/charles_sterling/2017/06/29/running-the-power-bi-refresh-apis-headl...





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

3 REPLIES 3
GilbertQ
Super User
Super User

Hi @sbeste

 

What I would suggest doing is to use the Power BI Refresh API, and create one PowerShell script per data refresh.

Then you could create a batch file that would then go and call all the PowerShell scripts?

I am not an expert with PowerShell and scripting, so there might be a more elegant way, but the above should work.

 

Here is a blog post from Chuck on the Power BI team, who details how to get it working.

https://blogs.msdn.microsoft.com/charles_sterling/2017/06/29/running-the-power-bi-refresh-apis-headl...





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

That'll work! I didn't know about the Refresh API, but it has the key bits. Thank you for the link, too.

 

Once again, I'm amazed at the ability of this community to deliver fast, detailed answers. This is awesome!

 

Steve

Hi @sbeste

 

Just test it manually so that you know it will work for one, and then you can roll it out to all your other datasets that need to be refreshed. But as long as you put in the required bits it should work seamlessley.

 

And it is a pleasure to help you out, I often come here to find answers, a real great resource!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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