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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
pennyjl
New Member

PowerBI report - changing Data source from an ODBC to a SQL Server connection, best way?

We have had PowerBI for a while, however it was orginally setup using a personal gateway and an ODBC connection.    We are moving to a On Premise Gateway, and a SQL Server connection.     Now trying to figure out how I can change the currect report to use the SQL connection instead of the ODBC connection, so that I can get it to work using the on premise gateway instead of the personal gateway.     

I was able to get the gateway setup and connections to our data sources, but not able to add an ODBC connection to the on premise gateway.   was told that it would be better to use a SQL Server connection, which we added a connector for.    

So now wanting to modify the current report, and change the data source.       I have tried a few things but not seeing what I have to do, not finding any guide or instructions on what needs to be done, or if I can even make a change so this works, or if I have to create the report all over again.

Guidance would be greatly appreciated on this?     Not seeing this convered in any training courses either.

1 REPLY 1
Greg_Deckler
Super User
Super User

@pennyjl Couple different approaches to this. If your queries essentially hard-coded the ODBC connection, you will want to go into Advanced Editor and replace your Source and probably Navigation steps to connect to your SQL Server. You would need to do that per query.

 

The better approach is if you have a separate query for your data source connection and that's all it does. And every other query simply references that query. Then you only need to do the edit in a single place.

 

So, essentially, I would create a query that connects to the SQL Server and database only. Copy the relevant lines in Advanced Editor and then edit your other queries as necessary replacing the necessary connection 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors