โ— LIVE
OpenAI releases GPT-5 APIIndia AI startup raises $120MBitcoin ETF hits record inflowsMeta Llama 4 benchmarks leakedOpenAI releases GPT-5 APIIndia AI startup raises $120MBitcoin ETF hits record inflowsMeta Llama 4 benchmarks leaked
๐Ÿ“… Sat, 21 Mar, 2026โœˆ๏ธ Telegram
AiFeed24

AI & Tech News

๐Ÿ”
โœˆ๏ธ Follow
๐Ÿ Home๐Ÿค–AI๐Ÿ’ปTech๐Ÿš€Startupsโ‚ฟCrypto๐Ÿ”’Security๐Ÿ‡ฎ๐Ÿ‡ณIndiaโ˜๏ธCloud๐Ÿ”ฅDeals
โœˆ๏ธ News Channel๐Ÿ›’ Deals Channel
How to Connect PowerBI to a local and cloud-hosted postgreSQL database
โ˜๏ธCloud & DevOps

How to Connect PowerBI to a local and cloud-hosted postgreSQL database

Home/Cloud & DevOps/How to Connect PowerBI to a local and cloud-hosted postgreSQL database

PowerBI is a business analytics platform developed and maintained by Microsoft. It has gained traction for its simplicity and has increasingly become the go to software for business analytics by many small, medium and large businesses. Many, if not most, of these businesses have their data stored in

โšกQuick SummaryAI generating...
M

Michael Mwai

๐Ÿ“… Mar 21, 2026ยทโฑ 4 min readยทDev.to โ†—
โœˆ๏ธ Telegram๐• TweetWhatsApp
๐Ÿ“ก

Original Source

Dev.to

https://dev.to/michaelmwai/how-to-connect-powerbi-to-a-local-and-cloud-hosted-postgresql-database-38e
Read Full โ†—

PowerBI is a business analytics platform developed and maintained by Microsoft. It has gained traction for its simplicity and has increasingly become the go to software for business analytics by many small, medium and large businesses. Many, if not most, of these businesses have their data stored in databases because databases ensure the data is secure, has structure and can be stored and retrieved at anytime. Analytics platforms like powerBI therefore have to provide means through which analysts can access the company data that is housed in the databases.

Connecting PowerBI to a local postgres database

The following steps outline how to connect PowerBI to a local postgres database:

  1. Launch PowerBI on your computer.

  2. Create a Blank report and from the Home tab click on 'Get Data'.

  3. Click on More... option on the Common Data Sources Wizard that appears

  4. On the Get Data wizard box scroll down and locate PostgreSQL database option and select it. Click on the green Connect button at the bottom of the wizard.

  5. The PostgresSQL database wizard appears with fields server and database to be filled. Since the postgres database is locally hosted, fill the server filled with localhost. You should also supply the port number of choice for this connection. The server name and port number is separated by a colon (:). By convention, the port number for postgreSQL is 5432 and will be the default port number if the port number is not supplied. If 5432, is unvailable, it is standard to use 5433. The server field will therefore be filled by localhost:5432
    Proceed to fill the Database field with the name of database you want to connect to.
    Proceed to Choose Data Connectivity Mode. Import Mode should be your go to connectivity mode if you want to do a full scale data analysis since it imports the data tables to your PowerBI allowing you to perfom EDA on the data.
    Click OK to connect.

  6. A Navigator wizard box appears upon successful connection showing your database on the left pane with the tables it holds under it. Select the tables you wish to use by checking the checking box next to it.

  7. Click Transform if the data in the tables needs any transformation before use, otherwise, click Load to load all tables into your model.

Connecting to a Postgres Database Hosted on the Cloud

For this demonstration, I will showing how to connect to a postgres database hosted on Aiven. Aiven is an open source data platform that offers a variety of services including databases like MySQL and PostgreSQL.
Ensure you have set up your postgres database on Aiven before taking the following steps:

  1. Sign in to your Aiven account
  2. After logging in, on the menu on the left, select services to show the services under your account.
  3. Locate the postgres service and ensure it is running. If not, click on the Action ('...') button the farthest right of the service to restart the service.
  4. Click on your postgres services to view the connection details of your service like host, database name, port number, user, password.
  5. Open a blank PowerBI report, click Get Data from the Home Tab and then More... option then PostgresSQL database and click Connect.
  6. Populate the Server and Database fields with the information from the Connection details from Aiven.  Click connect and provide the Username, password and click connect.
  7. Select the tables to add to your Data Model and click Load to load the tables or Transform to transform the data before loading for use.
Tags:#cloud#dev.to

Found this useful? Share it!

โœˆ๏ธ Telegram๐• TweetWhatsApp

Read the Full Story

Continue reading on Dev.to

Visit Dev.to โ†—

Related Stories

โ˜๏ธ
โ˜๏ธCloud & DevOps

Majority Element

about 2 hours ago

โ˜๏ธ
โ˜๏ธCloud & DevOps

Building a SQL Tokenizer and Formatter From Scratch โ€” Supporting 6 Dialects

about 2 hours ago

โ˜๏ธ
โ˜๏ธCloud & DevOps

Markdown Knowledge Graph for Humans and Agents

about 2 hours ago

Moving Beyond Disk: How Redis Supercharges Your App Performance
โ˜๏ธCloud & DevOps

Moving Beyond Disk: How Redis Supercharges Your App Performance

about 2 hours ago

๐Ÿ“ก Source Details

Dev.to

๐Ÿ“… Mar 21, 2026

๐Ÿ• about 6 hours ago

โฑ 4 min read

๐Ÿ—‚ Cloud & DevOps

Read Original โ†—

Web Hosting

๐ŸŒ Hostinger โ€” 80% Off Hosting

Start your website for โ‚น69/mo. Free domain + SSL included.

Claim Deal โ†’

๐Ÿ“ฌ AiFeed24 Daily

Top 5 AI & tech stories every morning. Join 40,000+ readers.

โœฆ 40,218 subscribers ยท No spam, ever

Cloud Hosting

โ˜๏ธ Vultr โ€” $100 Free Credit

Deploy cloud servers in 25+ locations. From $2.50/mo. No contract.

Claim $100 Credit โ†’
AiFeed24

India's AI-powered tech news hub. Daily coverage of AI, startups, crypto and emerging technology.

โœˆ๏ธ๐Ÿ›’

Topics

Artificial IntelligenceStartups & VCCryptocurrencyCybersecurityCloud & DevOpsIndia Tech

Company

About AiFeed24Write For UsContact

Daily Digest

Top 5 AI stories every morning. 40,000+ readers.

No spam, ever.

ยฉ 2026 AiFeed24 Media.Affiliate Disclosure โ€” We earn commission on qualifying purchases at no extra cost to you.
PrivacyTermsCookies