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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
AGUS
Frequent Visitor

Connect postgreSQL to power BI web

Hi!

 

I was able to connect PowerBI to Postgres on Desktop, but when I view it in the web/cloud verison it gives me the error: "Failed to update data source credentials:  The PostgreSQL source doesn't support encrypted connections."

 

I'm already using a gateway with my PC and it works with connection with MySQL.

 

How can I get the connection with PostgresSQL to work on PowerBI web?

 

Thank you.

1 ACCEPTED SOLUTION

Hi @AGUS ,

 

I am not an expert in doing it in the gateway, but this article appears to show the gateway setup.

PostgreSQL data refresh using Data Gateway in Power BI report | by Ramu Vudugula | Medium

 




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

Proud to be a Datanaut!
Private message me for consulting or training needs.




View solution in original post

7 REPLIES 7
collinq
Super User
Super User

Hi @AGUS ,

 

This article explains how to connect to PostgreSQL

Power Query PostgreSQL connector | Microsoft Docs




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

Proud to be a Datanaut!
Private message me for consulting or training needs.




AGUS
Frequent Visitor

Hi,

 

I have the connection at desktop level but when I upload it to Power BI web the connnetion is lost.

This is the message when I try to configure it:

AGUS_0-1620223929726.png

I don't know how to do it.

Thank you

Hi @AGUS ,

 

I am not an expert in doing it in the gateway, but this article appears to show the gateway setup.

PostgreSQL data refresh using Data Gateway in Power BI report | by Ramu Vudugula | Medium

 




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

Proud to be a Datanaut!
Private message me for consulting or training needs.




AGUS
Frequent Visitor

Thank you very much!

Hello @AGUS , 
I face the same issue. Is the gateway a solution to the problem? 
Thank you in advance for your answer 

Hello @RaissHajar 

I found a solution. I set up an ODBC connection with postgress in the computer with the gateway. It´s a poor solution because you need to have this computer always on and internet conneted.

https://ramvudugula9.medium.com/postgresql-data-refresh-using-data-gateway-in-power-bi-report-ac8095...

I highly recomend to use databricks.

Thank you so much for your answer @AGUS . 
I implemented the solution and it works with my on-prem DB. 
I will also explore Databricks. 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.