cancel
Showing results for 
Search instead for 
Did you mean: 
ashishrj

Configuring Power BI Connectivity to PostgreSQL Database

Prerequisites:

Power BI Desktop, PostgreSQL Database, pgAdmin III, Visual Studio 2008 or higher

 

Introduction

 

Power BI supports connectivity to different databases such as SQL Server, MySQL, Oracle and many more (list of all supported databases given here ). By providing necessary details such as server name, database name, username & password, you can easily connect to database and start exploring data using different visualizations in the form of reports/dashboards.

 

This article will walk you through the necessary steps required to configure in your system before establishing connection of Power BI Desktop Tool to PostgreSQL Database.

After installation of PostgreSQL database in your machine, if you try connecting Power BI Desktop Tool to PostgreSQL Database, you will get following error as shown in the screenshot below:

 

 1.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Following are the steps required to connect Power BI Desktop Tool to PostgreSQL Database:

 

  1. Setup PostgreSQL Client
  2. Connect Power BI Desktop Tool to PostgreSQL

Below are the steps that will walk you through setting up PostgreSQL Client:

 

Step 1: Download the latest MSI from this page and install it in your machine.

 

Step 2: Once this is done, you can now try connecting Power BI to PostgreSQL. However you will notice below error

 

2.png 

 

Once you restart your machine, you can now connect to PostgreSQL and start playing with your data. Below are the steps for connecting Power BI Desktop Tool to PostgreSQL:

 

Step 1: Open pgAdmin III interface to create database, table and few records to display in your report as shown in screen capture below

 

 6.png

 

Step 2: Open Power BI Desktop Tool and click ‘Get Data’ and select PostgreSQL Database as shown below

 

Step 3: Enter server name (in our case it is localhost), database name, username and password as shown in below screen capture

 

 

 4.png

 

Step 4: Select required table from database and click load as shown in screen capture below

 

5.png 

 

Step 5: Once data is loaded in model, you can start playing around with the data and create beautiful visualizations/reports as shown in image below and later publish it to Power BI Online Service

Comments