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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Cannot connect from Power BI Desktop to on-prem datasource.

Hey there!

 

A customer has requested to make their on-prem analysis server cubes available by the use of power bi gateways. I have configured the power bi gateway on the same server as the analysis server which hosts the cubes. I was able to create a dataset connecting to this analysis cube (by using live connection and troubleshooting with a import connection) and upload the set in the power bi service. I configured the gateway in the service to correctly map the sources. Which allowed me to make reports on this dataset in the service and see the data. So far so good.

 

But at this point i expected to be able to connect to this dataset from my local device by using Power BI Desktop. But everytime i try to connect to the dataset it returns the error: 

 

"Unable to connect

We encountered an error while trying to connect.
Details: "Power BI service live connection is invalid. Please try again.
Details: We could not connect to the analysis Services server because the connection timed out or the server name is incorrect.""

 

I double checked the documentation. And confirmed the following:

- The Gateway in the PBI service is configured with Server Admin account on the analysis service server.
- The Gateway is using EffectiveUserName

- I am using a Domain account in Power BI Desktop which has access to cube in the resource. (It's the same account i used to log onto the power bi service and try and develop a report there, which worked.)

- If i install power bi on the same server as the Gateway and the Analysis Server i can use this Dataset to load data into the Power BI Desktop.

 

Yet my local device with Power BI Desktop returns the error above if i try to use the Dataset in the service (i repeated the process on other devices as well which led to the same results). The only thing i can think off (but could not find any confirmation for) is that my local device is not in the same domain as the server with the gateway and the analysis server.

 

Can anyone help me with finding the issue?

1 ACCEPTED SOLUTION
aj1973
Community Champion
Community Champion

Hi @Anonymous 

Check with Power Bi Administrator to allow you to connect to the source with your desktop 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

7 REPLIES 7
wafabenaissa92
Regular Visitor

I'm having the same issue. Any updates please ?

Anonymous
Not applicable

Hi @Anonymous ,

 

Have you tried using the Azure AS server name as the server name from Power BI Desktop to see if it works?

 

According this article which describes how to get data from Azure Analysis Services:

Before you connect, you need to get the server name. In Azure portal > server > Overview > Server name, copy the entire server name. If other users in your organization are connecting to this server too, you'll want to share this server name with them. When specifying a server name, the entire path must be used.

 

You can review the following links to help resolve the question.

Solved: Connecting PBID to SSAS Tabular when not in domain - Microsoft Power BI Community

POWER BI Desktop connectivity analysis server (microsoft.com)

 

Best Regards,

Neeko Tang

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

Anonymous
Not applicable

Hi @Anonymous ,

 

Thank you for your response!

 

We don't have a Azure Analysis Server, we're using a Azure VM which hosts our SQL Server Analysis Services. This VM is blocked from most outside connections therefore we opted to use the Power BI gateway to allow us a connection to the data. This connection has been established inside the power bi service and confirmed to be working in the Power BI Service.

 

We managed to create a Dataset in the Power BI Service which connects over the gateway to the SQL Server Analysis Services instance. We can use this dataset to create reports as long as we do this inside the power bi service on app.powerbi.com. And to our understanding we should be able to use Power BI Desktop to connect to this dataset and create reports on a local device. With the same user account, i am able to view the data and create reports in de power bi service. But i am unable to use that account to connect to the same dataset from Power BI Desktop.

 

The dataset is using a live connection. Changing this connection to import allows us to work with the data and create reports in Power BI Desktop, but we want to use Live connections.

 

Thank you for your time!

aj1973
Community Champion
Community Champion

Hi @Anonymous 

Check with Power Bi Administrator to allow you to connect to the source with your desktop 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Anonymous
Not applicable

As confirmed by the IT Department it's actively being blocked by the Power BI Administrator.

Anonymous
Not applicable

Hi @aj1973,

 

Thank you for your response!

 

I have requested our IT department to check on the following settings:

Allow Live Connections:
https://learn.microsoft.com/en-us/power-bi/admin/service-admin-portal-export-sharing#allow-live-conn...

 

Allow DirectQuery connections to Power BI datasets:

https://learn.microsoft.com/en-us/power-bi/admin/service-admin-portal-export-sharing#allow-directque...

 

Hopefully we find something there!

I'm having the same issue. Did you find a solution?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Kudoed Authors