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
apiimt
Frequent Visitor

Change data sources for all pbix files in one go

I am currently doing a database migration from AAAAA01 database server to BBBBB01 server. All of my power bi pbix files (>100) are pointing to the same source (i.e. AAAAA01 server DB XXX ) now, and I am looking for a way to change the AAAAA01 server XXX DB to BBBBB01 server and DB YYY for all the dashboards files in one go instead of opening each of them and change it one by one.


1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Since this is a meta data change you will end up opening each of them anyway.

 

One approach is to use parameters for server and database. Then you can change these parameters in the service, programmatically via the API

 

Datasets - Update Parameters - REST API (Power BI Power BI REST APIs) | Microsoft Learn

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

Since this is a meta data change you will end up opening each of them anyway.

 

One approach is to use parameters for server and database. Then you can change these parameters in the service, programmatically via the API

 

Datasets - Update Parameters - REST API (Power BI Power BI REST APIs) | Microsoft Learn

Thank you. 

Actually I find this solution by myself yesterday. I tried and it is successful, but it takes time to redo all my 100 dashboards. But it seems worth the time to reconfig. Hopefully next time when I change the DB connection, I can use the parameterised method through API. 

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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.