cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

Accepted Solutions
Highlighted
Microsoft
Microsoft

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

@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
Highlighted
Microsoft
Microsoft

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

@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

Highlighted
Frequent Visitor

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

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. 

Highlighted
Frequent Visitor

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

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

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Community Summit Australia – Join Online!

Community Summit Australia – Join Online!

Be a part of the leading Microsoft Business Applications digital event, curated for the APAC community.

Top Solution Authors
Top Kudoed Authors