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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
BenCardineau
Helper I
Helper I

DirectQuery, Data Gateway required when used with other sources?

Hi folks, I am troubled... 

 

I have a report using a:

1- a DirectQuery connection to an Azure SQL database table,

2- an excel file on One Drive (connection using web connector),

 

it works well on the desktop, but when I publish the report, PBI Service is telling me it can't connect to the SQL table as I don't have any installed data gateway... And the the strange thing is that if I test the report with only the DirectQuery (or only with the Excel One Drive file), then it works without any data gateway... 

 

Am I missing a point here? Any clue?

Thx in advance!

Ben

1 ACCEPTED SOLUTION

Hi @amitchandak & @vanessafvg  and thx for your feedback. I thought I had replied but it seems I forgot to push the last button... Anyway, problem solved, and shame on me: after several hours skratching my head with this, I finally noticed that a tiny little query was still aiming at a local file (I had simply forgotten to change it to a 'web' connector. Once I truly only remained with web and azure sql connections, then I was no longer asked to use the datagateway... 

 

Thx again to you, and have a great day!

Ben

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@BenCardineau , data gateway id for power bi service to connect with the database , for which direct connection setup is not available.

I think for Azure SQL, you check the details again for gateway.

Also for one drive schedule refresh it should ask credential there on service

 

 

refer:https://data-flair.training/blogs/power-bi-gateway/

https://docs.microsoft.com/en-us/power-bi/connect-data/service-gateway-data-sources

https://docs.microsoft.com/en-us/power-bi/connect-data/service-gateway-mashup-on-premises-cloud

 

https://community.powerbi.com/t5/Desktop/Personal-Vs-Enterprise-Gateway/td-p/767443
https://www.desertislesql.com/wordpress1/?p=1067
https://radacad.com/the-power-bi-gateway-all-you-need-to-know
https://www.mssqltips.com/sqlservertip/4232/how-to-use-the-power-bi-enterprise-gateway/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak & @vanessafvg  and thx for your feedback. I thought I had replied but it seems I forgot to push the last button... Anyway, problem solved, and shame on me: after several hours skratching my head with this, I finally noticed that a tiny little query was still aiming at a local file (I had simply forgotten to change it to a 'web' connector. Once I truly only remained with web and azure sql connections, then I was no longer asked to use the datagateway... 

 

Thx again to you, and have a great day!

Ben

vanessafvg
Community Champion
Community Champion

are you using the one drive connector? that way you dont need a gateway. when you say a web connector what are you referring, to, i think a web connection requires a gateway.




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
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.