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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dancarr22
Helper V
Helper V

How to change db connection from SQL Server to Power BI Service?

Hello,

 

We currently have multiple Power BI workbooks which connect to a SQL Server db.

I want to update the connection in these workbooks to point to a Power BI Service.  How is this done?

I've tried to go into the Advanced Editor in the Power BI Service to view the connection string but unable to edit queries.

Any help greatly appreciated.

 

Thanks,

Dan

 

 

3 REPLIES 3
mow700
Resolver I
Resolver I

You won't be able to edit queries if the source is a Power BI Service hosted model.  The trick to this is to promote this hosted model to a master structure.  Reports that reference this model as the source should simply filter the master model.  Your master model still connects to the original sources, you would be editing the master model queries if required.

More details:

https://powerbi.microsoft.com/en-us/blog/connecting-to-datasets-in-the-power-bi-service-from-desktop...

Thanks for your response.  I'm clear on the benefits of Power BI service and we are currently connecting to it for new reports.

But, we have older PBI reports which originally connected to SQL Server (on which the current Service structure is based) but there is no way to change the data source and say "point to Power BI Service instead of SQL Server".  

Is there any way in the Advanced Editor to change a SQL Connection to point to the service?

 

Thanks,

Dan

I get it now.  Confirmed, I don't see a way to change the datasource from SQL to PBI Service.  With a Service connected .pbix file I have no access to the query editor at all so I can't discover the connection syntax in the advanced editor.  I connected to the Service connected .pbix with DAX studio, and was unable to view any metadata.  I connected to the .pbix file with SSMS and could not enumerate any cubes or connections either.  Finally, I renamed my .pbix file with a .zip extension and inspected the contents of the Connections file that it contains with notepad.  Finally I can see the details, but I have not been successful in updating my SQL connected to file to the new source.  Good luck, please let us know if you discover a way to accomplish this one.

 

snip_20171018101325.png

 

 

 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors