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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

DirectQuery Azure SQL DB Data Source Credentials is DISABLED

I have 2 PBI reports in using Desktop, connecting to Azure SQL DB

1. ImportQuery - Azure SQL DB

2. DirectQuery - Azure SQL DB

 

I got Power BI Pro account, I've published the 2 reports, they both show error, "There is no gateway to acces the data source", > Dataset setting to fix the error:

 

1. ImportQuery - Azure SQL DB -> Data Source Credentials -> input the correct credentials -> FIXED

2. DirectQuery - Azure SQL DB -> Data Source Credentials is DISABLED

 

 

6 REPLIES 6
v-easonf-msft
Community Support
Community Support

 Hi , @Anonymous 

As @nickyvv  mentioned ,

Your data source doesn't need the On-premises data gateway (Azure SQL DatabaseAzure SQL Data Warehouse, or Redshift), so you only need  to edit  credentials before the Power BI service shows the published report as below. 

 

4.pngWith the cloud credentials set, you can refresh the dataset again by using the Refresh now option.

 

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

 

 

Anonymous
Not applicable

The data source credential is disabled, even after refresh report. 

But for ImportQuery - data source credentail is enabled.

 

DirectQuery - Dataset - Data Source Credential.pngImportQuery - Dataset - Data Source Credential.png

Hi , @Anonymous 

Could you please tell me whether your problem has been solved?

 

Best Regards,
Community Support Team _ Eason

Anonymous
Not applicable

I'm already requested our Azure Admin to check the security settings if it follows the configurations to enabled direct query connection. 

 

Thanks for the help. 

 

Will provide feedback once I've confirmed this to our admin.

 

 

Hi , @Anonymous 

You can refer to this article Azure SQL Database with DirectQuery 

The following two points are important:

If you  make sure that servername and firewall are fine and the problem is still unresolved,  I suggest you to open a ticket here for help if you are a pro user.

URL: https://powerbi.microsoft.com/en-us/support/ 

 

Best Regards,
Community Support Team _ Eason

nickyvv
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous,

 

from what I understand from the docs, for Direct Query to Azure SQL DB, you must set the credentials in the service.

The steps you have to take are outlined here:

  1. In the Power BI service, select the Settings gear icon and choose the Settings menu item.

  2. In the Power BI service's Settings page, select the Datasets tab, choose the dataset that uses DirectQuery, and select Edit credentials.

  3. Add the credentials. Otherwise, an error occurs when you open a published report or explore a dataset that's created with a DirectQuery connection.

 

Did this help you or did I answer your question?
Then please give kudos or mark my post as a solution!
My blog: nickyvv.com
Twitter: @NickyvV



Did I answer your question? Mark my post as a solution!

Blog: nickyvv.com | @NickyvV


Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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