Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Direct Query and PostgreSQL



I have connected to a PostgreSQL database using an ODBC connection. However I now want to connect a single table direct query. Is it possible to do this in any way?


Many thanks in advance

Frequent Visitor

Hi @Jan_Hob , I am in a same situation, can you please help if you were you able to find a solution for this? I am getting below error while Configuring credentials on power bi services. I am able to connect it in desktop (using Direct Query mode) but can't connect it on services.

Hi @kashishmatta1 Sorry I abandoned this so can't be of any assistance

Frequent Visitor

Same question here! Documentation says supports Direct Query/Live, but can't find any way to do it. Everyone says to do it in the service, you have to use ODBC which doesn't support direct query. Any assistance greatly appreciated. Thanks!

None of these links work. They highlight issues and show the ODBC solution, which doesn't support direct query) as well as one hosted on AWS. On the microsoft documentation it says postgresql itself (standard connector) can be done in direct query mode. Is this not possible in the service?

Thank you. I have already looked at those sources and cannot find any reference to direct query. I am hesitant to switch to npgsql unless it will guarantee that I can then do direct query.

Hi, @Jan_Hob 


You may have to use npgsql then use powerbi connector to achieve dq mode.



Power Query PostgreSQL connector - Power Query | Microsoft Docs


Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.

Best Regards,
Community Support Team _ Janey

Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors