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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
jgu1
Frequent Visitor

Is there a API function to refresh Power BI service dataset and report on demand?

Hi,

 

we are building a power BI reprot linking to a dataset using DirectQuery. Dataset content (or direct query result) is subject to change as user updates data. We like to have a button; once it's clicked, it would force a refresh on the dataset and thus on the report. finally it would be reflected in the iframe. it's supposed to replace manual click of 'refresh now' command in the Power BI service with a programmatic call. 

 

Is it available? 

 

 

 

1 ACCEPTED SOLUTION
v-caliao-msft
Employee
Employee

@jgu1,

 

Based on my research, there is no such a option for us to achieve this requirement for DirectQuery model. You can do it in import mode easily. Do not set schedule for this dataset. And click refresh now button when you need to refresh your report.

 

Regards,

Charlie Liao

View solution in original post

3 REPLIES 3
v-caliao-msft
Employee
Employee

@jgu1,

 

Based on my research, there is no such a option for us to achieve this requirement for DirectQuery model. You can do it in import mode easily. Do not set schedule for this dataset. And click refresh now button when you need to refresh your report.

 

Regards,

Charlie Liao

btw, does Power BI team has thought of exposing the refresh via API? why not or when do you see it coming?

Ok, thank you! import api could be a solution but not a perfect one. because it calls for update or generation on the local pbix file as well. 

 

let me try datatable operation. 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors