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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
r4m4nxd
Regular Visitor

Direct Query report published but disconnected

Hi Everyone, I have a PBI report which I am using to show real time data, every minute, using page refresh on direct query.
However, it is only working on the desktop version, not on the Power BI Service.

Few things I did was-
1. Make a direct query connection for the table in report.
2. turned on page refresh, which worked on the Desktop version.

r4m4nxd_2-1722292906863.png

3. When I published the report on Power Bi Service, it showed report disconnected.

r4m4nxd_1-1722292893684.png

4. I have tried multiple solutions found online, none of them are working for me.
5. I have re-configured the gateway as well. But it still keeps showing There is no gateway to access the data source 'database name'.

r4m4nxd_4-1722293306557.png

 

 

r4m4nxd_0-1722292882214.png

This only happens if I have a direct query connection, as soon as I change that table to import connection, it is working all fine, automatically makes the database connection thru gateway.

I cannot find any solution for it to work further.

has anyone dealt with the same issue before?
It is out of my thinking scope now. Any help would be appreciated.

1 ACCEPTED SOLUTION
v-yohua-msft
Community Support
Community Support

Hi, @r4m4nxd 

First, you need to check if you have a gateway

vyohuamsft_0-1722303055705.png

vyohuamsft_1-1722303088919.png

Find your semantic model and set it up. Once you're in the settings, select Gateway and Cloud connection

vyohuamsft_2-1722303118255.png

vyohuamsft_3-1722303236756.png

Select Add to gateway

vyohuamsft_7-1722304289652.png

Create a new connection.

 

vyohuamsft_6-1722304240616.png

 

Then Map to your connection, select apply.

vyohuamsft_5-1722304125874.png

 

If your refresh is normal, then the gateway connection is successful

vyohuamsft_8-1722304443136.png

 

You can learn more about the following link:

Add or remove a gateway data source - Power BI | Microsoft Learn

 

Create and share cloud data sources in the Power BI service - Power BI | Microsoft Learn

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

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

View solution in original post

2 REPLIES 2
v-yohua-msft
Community Support
Community Support

Hi, @r4m4nxd 

First, you need to check if you have a gateway

vyohuamsft_0-1722303055705.png

vyohuamsft_1-1722303088919.png

Find your semantic model and set it up. Once you're in the settings, select Gateway and Cloud connection

vyohuamsft_2-1722303118255.png

vyohuamsft_3-1722303236756.png

Select Add to gateway

vyohuamsft_7-1722304289652.png

Create a new connection.

 

vyohuamsft_6-1722304240616.png

 

Then Map to your connection, select apply.

vyohuamsft_5-1722304125874.png

 

If your refresh is normal, then the gateway connection is successful

vyohuamsft_8-1722304443136.png

 

You can learn more about the following link:

Add or remove a gateway data source - Power BI | Microsoft Learn

 

Create and share cloud data sources in the Power BI service - Power BI | Microsoft Learn

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

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

Thank you so much.

Although I already had a connection made for the same database in that gateway, I recreated another connection with same credentials and database name. It finally showed up in the drop down, and now the refreshes are running smoothly.

Thank you very much for detailed guidleines.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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