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
mbd
Helper I
Helper I

Data Source Change

I've created many reports using data from a database located on Azure. I need to change my data source to an updated database. The old and new database are both in Azure. The new database has some additional information so the databases are not exactly the same. Most of the queries are the same. I know I'll have to recreate some of the reports I have, but I'm hoping not to recreate all of them.

 

On my desktop Power BI, I went into Edit Queries, Data Source Settings and changed the datasource to the new name. The refresh completed with no errors. 

But the queries have not been updated to the new source on my desktop. I can view the new source in the online Power BI and see the tables that the queries produced are different. 

 

Any help appreciated

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

Create a new query that connects to the new data source. Go into Advanced Editor in the Query Editor and copy the Source line. Then, edit your other queries and replace their Source lines.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

Create a new query that connects to the new data source. Go into Advanced Editor in the Query Editor and copy the Source line. Then, edit your other queries and replace their Source lines.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

When I went into the Advanced Editor in the Query Editor the Source line is already pointing to the correct source. I had already changed the source using Data Source Settings and it changed all the queries to the new data source. 

 

I should have added that even though the queries are all pointing to the new data source, the reports are not updating when I refresh.

 

 Final solution. I had a friend who knows SQL take a look and he helped me change the SQL code in the Advanced Editor in the Query Editor. I know the step I missed was not creating a new query as you stated. I just used the Data Source Setting in the Query Editor.

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.