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. 

avatar user

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)