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
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
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.

Top Solution Authors
Top Kudoed Authors