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
javedbh
Helper II
Helper II

Refresh dataset in .pbix file programatically

We can refresh the dataset in Power BI Desktop file (.pbix) in Power BI Desktop by clicking the “Refresh” button. Is there any way to do this programmatically?

 

Not sure if it is the correct forum to post but someone might be able to answer.

1 ACCEPTED SOLUTION
ankitpatira
Community Champion
Community Champion

@javedbh You can consider power bi embedded which gives you set of APIs to perform power bi tasks. Since that feature is still in preview there is no API to trigger data refresh programatically however that may change in future as that feature moves out of preview.

 

View solution in original post

5 REPLIES 5
v-yuezhe-msft
Employee
Employee

Hi javedbh,

We are not able to refresh dataset in Power BI Desktop file programmatically. Regarding to this issue, please vote it in the following ideas.

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/10831176-programmatically-refresh...
https://ideas.powerbi.com/forums/268152-developer-apis/suggestions/9258843-trigger-refreshes-for-dat...

Thanks,
Lydia Zhang

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

Is it currently an option for in shell cmd or powershelll

 

doing...

 

refresh report.pbix?

Hi all! 


Somebody has a sample code to do this? 

 

Thanks!

 

ankitpatira
Community Champion
Community Champion

@javedbh You can consider power bi embedded which gives you set of APIs to perform power bi tasks. Since that feature is still in preview there is no API to trigger data refresh programatically however that may change in future as that feature moves out of preview.

 

sdjensen
Solution Sage
Solution Sage

PBI Desktop is a development tool to develop models and reports meant for sharing in the Power BI Service where you can schedule refresh of your data. I don't know of any feature to enable auto refresh in .pbix files.

/sdjensen

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.