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
foks
Frequent Visitor

Change SSAS data source connection string after publishing to Power BI Service

Hi,

 

I have Data Gateway installed on SSAS server with connection string database server: localhost, database: olap_cube. 

Unfortunately users are working with Power BI Desktop locally. They are using OLAP through web as connection string so they are connecting to server via https://olapserver...

If they will publish report/dataset there is error "There is no gateway to access the data source https://olapserver" because data source in gateway has local server name.  

 

Now I can't change that connection string in Power BI service nor manually or automatically so I have only two options. Both aren't perfect to me:

1) To publish report user has to log in to SSAS/Gateway server, install Power BI there, change connection string to servername and publish report. It's requires access to Gateway server...

2) I can add data source in PBI Gateway with connection string: https://. But from performance side it hasn't any sense for me because power bi gateway will be connecting through web to SSAS cube that is on the same server. It isn't efficient at all.  

 

Is there any other way to handle this? Maybe any API, Powershell script, gateway property that will change/map web address https:// to localhost server name? 

 

Best Regards,

Adam

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @foks 

Please add the datesource in manage gateway as below:

https://docs.microsoft.com/en-us/power-bi/service-gateway-enterprise-manage-ssas

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.