How to connect Supabase to Microsoft Power BI

jennyjenny
2 min read

🔗 How to Connect Supabase to Microsoft Power BI

Supabase is an open-source backend-as-a-service that provides a PostgreSQL database, authentication, and storage services. Microsoft Power BI is a powerful business analytics tool that enables users to visualize and share insights from their data. Connecting Supabase to Power BI allows you to create dynamic dashboards and reports based on your Supabase data.

✅ Prerequisites

  • A Supabase project

  • Microsoft Power BI Desktop

  • Supabase SSL certificate downloaded

1. 🔑 Get Your Supabase Connection Details

Go to Dashboard → connect in your Supabase project and copy

  • Host: Use the Session Pooler URL (e.g. aws-0-xyz.pooler.supabase.co)

  • Port: 5432

  • Database

  • User: typically postgres.project-ref

  • Password:xxxxxxxx

Download the .crt file from the SSL Configuration section.

🛡️ Please note: Supabase's Direct Connection uses IPv6 by default — if your network doesn’t support IPv6, either enable the IPv4 Addon or use the Session Pooler, which serves as an alternative when connecting over IPv4.


2. 🧩 Import Supabase SSL Certificate

Power BI requires the root SSL certificate to be trusted. Here’s how to import it:

  1. Press Win + R, type mmc, and hit Enter

  2. Go to File → Add/Remove Snap-in…

  3. Add Certificates, Add>, select Computer accountLocal computer

  4. Navigate to: Certificates → Trusted Root Certification Authorities

  5. Right-click Certificates > All Tasks → Import

  6. Use the wizard to import the downloaded supabase ssl certificate .crt file

  7. Ensure it’s placed in the Trusted Root Certification Authorities store

You should see a success confirmation. Power BI can now trust SSL-secured connections.

3. 📊 Connect to Supabase from Power BI

  1. Open Power BI Desktop

  2. Select Get Data → PostgreSQL database

  3. Fill in:

  4. Choose Database authentication and enter your Supabase username and password

  5. Click OK

In the Navigator window, select the data you require, then either Load to import it directly or Transform Data to shape it before loading

After this, you’re all set! You’ve now connected Power BI to your Supabase PostgreSQL database using the most streamlined and reliable method.

🛠 Troubleshooting

  • SSL Errors: Ensure certificate was imported under Local Computer → Trusted Root

  • Connection Timeout: Use the Pooler URL if IPv6 isn’t supported in your network

  • Network Limitations

📚 References

1
Subscribe to my newsletter

Read articles from jenny directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

jenny
jenny

software developer