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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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