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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
TallPolishAdam
Frequent Visitor

Querying 2 different SQL Servers with direct query works in Desktop App but not in Power BI Service

I'm querying two different databases across two different SQL Servers in direct query mode. When doing so in the Power BI Desktop app I see no indication that my report is running slow. However, when I publish to the Power BI Service the refresh times become very slow and eventually all the visuals stop working.

 

The two servers are accessed using two different gateways. Does this only work in the desktop Power BI app? If not, why am I having so many more problems in the web-version of my report? I should mention I am only grabbing a single row (the latest row) from each table so I don't think the queries themselves should be an issue.

1 ACCEPTED SOLUTION
edhans
Super User
Super User

You will probably need to investigatge the network performance between the service, your gateway, and then your servers. The service doesn't perform better or worse than the desktop. it performs differently as it isn't behind your firewall, and it has to use a gateway, something Power BI Desktop doesn't need. An improperly configured machine hosting a gateway can lead to bad performance.  Monitor and optimize on-premises data gateway performance | Microsoft Learn can give you more info on what to investigate there.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

3 REPLIES 3
edhans
Super User
Super User

You will probably need to investigatge the network performance between the service, your gateway, and then your servers. The service doesn't perform better or worse than the desktop. it performs differently as it isn't behind your firewall, and it has to use a gateway, something Power BI Desktop doesn't need. An improperly configured machine hosting a gateway can lead to bad performance.  Monitor and optimize on-premises data gateway performance | Microsoft Learn can give you more info on what to investigate there.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

That makes sense, but just to be clear connecting to multiple servers/databases with direct query should not cause an issue.

Well, true. That should not cause an issue. But understand that DQ performs in order of magnitudes worse than import models. So it is never going to be snappy compared to what the built in vertipaq engine can do. 

Think of using a cached system or an uncached system. DQ is uncached.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Solution Authors
Top Kudoed Authors