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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
jarthda
Regular Visitor

How to switch data source in Desktop

I have my report .pbix definition currently connected to Azure SQL. I a have the same tables in a SQL instance. What is the best way to replace the connection but keep the report and tables? Is this possible?

Spoiler
 
1 ACCEPTED SOLUTION
mahimabedi
Responsive Resident
Responsive Resident

If you only want to change the connection string or point to a new SQL instance, then you can do it under data source settings as well.

mahimabedi_0-1603591221989.png

 

View solution in original post

2 REPLIES 2
mahimabedi
Responsive Resident
Responsive Resident

If you only want to change the connection string or point to a new SQL instance, then you can do it under data source settings as well.

mahimabedi_0-1603591221989.png

 

MattAllington
Community Champion
Community Champion

I'm not sure on the specifics of the connection steps in this case, but in general, you can change any data source as follows

 

1. Do not delete the current loaded table

2. Load the new table from the new source from scratch. Make sure the final table is identical to the original

3. In the new table query (2 above), go into Advanced Editor and copy all the code

4. Go into advanced editor for the original table (1 above) and paste the code from 2 in place of original code. 

take a backup copy first. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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