Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (11.1k points)
How can I connect Power Bi PowergreSql?

1 Answer

0 votes
by (22.5k points)
edited by

In order to connect PostgreSQL to Power BI, you need to configure both of them.

Configuring PostgreSQL

 Edit the pg_hba.conf file :

sudo nano path/to/your/file/pg_hba.conf

 Allow remote connections from host and allow databases. So that you can, edit it according to the own requirements:

pg_hba.conf file must be like:

PostgreSQL to Power BI : pg_hba.conf file

 edit your postgresql.conf file.

sudo nano path/of/your/file/postgresql.conf ssl = false

 Restart your PostgreSQL to know about the changes.

 Restart by using the command :

sudo service postgresql restart

Configure Power BI

In Power BI Desktop. Select Get data and scroll down the option More.

PostgreSQL to Power BI : Get Data

 Click on PostgreSQL database in the database option and click Connect.

PostgreSQL to Power BI : Select PostgreSQL

 Enter the server IP and database name.

PostgreSQL to Power BI : Connecting to the database

you need to enter user name and the password and click on Connect.

PostgreSQL to Power BI : Connecting to the database

To know more about this BI tool in detail, you check out our Power BI Certification

   Also, check out our YouTube video to know the fundaments of Power BI and more

Looking for a comprehensive Power BI course? Enroll now!

Related questions

0 votes
1 answer
0 votes
1 answer
asked Dec 22, 2020 in BI by Chris (11.1k points)
0 votes
1 answer
asked Jan 20, 2021 in BI by Chris (11.1k points)
0 votes
1 answer
asked Apr 5, 2021 in BI by Chris (11.1k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...