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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JohnTheDoe
Frequent Visitor

REST API: Change a reports data source

If I have a report saved in the PowerBI Service, is there a way to use PowerBI's REST API to fetch that report and change that report's data source to use a local dataset (CSV File) instead without having to open PowerBI Desktop application?

 

I know I can fetch Reports from the service to render it in my own application. However I don't want it to always display the same data it has, but display the data of my choosing from a local dataset in the computer.

4 REPLIES 4
Anonymous
Not applicable

@JohnTheDoe  did you achieve this ? I'm trying to figure out the same thing to be able to upload a report with a Test datasource and once tested&verified change its datasource to a production one.

v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @JohnTheDoe,

 

Since the data source is the CSV files, datasets/updatedatasources can't help here. Maybe you can try datasets/updateparameters. Please also refer to the #restrictions

BTW, if you use the On-premises gateway, you should add all the data source first.

 

Best Regards,

Dale

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

@v-jiascu-msft Thanks for the reply!

 

I'll give datasets/updateparameters a try then. I'm also considering trying out reports/Rebind as well. 

 

Will update if anything comes up.

 

Thanks!

Hi @JohnTheDoe,

 

Did you achieve it?

 

Best Regards,

Dale

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.