Connection flow: [Power BI Desktop] - [Get Data / PostgreSQL] - [Server & Credentials] - [Navigator] - [Load] Step 1 Step 2 Steps 3–4 Step 5 Final
Connection flow: [Power BI Desktop] - [Get Data / PostgreSQL] - [Server & Credentials] - [Navigator] - [Load] Step 1 Step 2 Steps 3–4 Step 5 Final
Connection flow: [Power BI Desktop] - [Get Data / PostgreSQL] - [Server & Credentials] - [Navigator] - [Load] Step 1 Step 2 Steps 3–4 Step 5 Final
pg-abc123.aivencloud.com:15432
pg-abc123.aivencloud.com:15432
pg-abc123.aivencloud.com:15432
sslmode=verify-ca;sslrootcert=C:\certs\aiven-ca.pem
sslmode=verify-ca;sslrootcert=C:\certs\aiven-ca.pem
sslmode=verify-ca;sslrootcert=C:\certs\aiven-ca.pem
select p.category, c.membership_status, SUM(s.total_amount) as revenue, COUNT(s.sale_id) as transactions
from sales s
inner join products p on s.product_id = p.product_id
inner join customers c on s.customer_id = c.customer_id
group by p.category, c.membership_status
order by revenue desc;
select p.category, c.membership_status, SUM(s.total_amount) as revenue, COUNT(s.sale_id) as transactions
from sales s
inner join products p on s.product_id = p.product_id
inner join customers c on s.customer_id = c.customer_id
group by p.category, c.membership_status
order by revenue desc;
select p.category, c.membership_status, SUM(s.total_amount) as revenue, COUNT(s.sale_id) as transactions
from sales s
inner join products p on s.product_id = p.product_id
inner join customers c on s.customer_id = c.customer_id
group by p.category, c.membership_status
order by revenue desc; - Introduction: Power BI and SQL Databases
- Connecting to a Local PostgreSQL Database
- Connecting to Aiven Cloud PostgreSQL
- Loading Tables and Creating Relationships
- Why SQL Skills Matter for Power BI Analysts - Power BI Desktop is installed (Windows only).
- PostgreSQL is installed, and the target database is created.
- The Npgsql PostgreSQL connector is installed. Power BI requires this driver to communicate with PostgreSQL. Download it from the official Npgsql releases page and install it before opening Power BI.
- You know the database name, a valid username, and its password. - Server - enter localhost for a local instance, or a hostname/IP address for a network server.
- Database - enter the exact name of the PostgreSQL database you want to connect to (for example, assignment). - customers.customer_id - sales.customer_id (one-to-many)
- products.product_id - sales.product_id (one-to-many)
- products.product_id - inventory.product_id (one-to-one)