> ## Documentation Index
> Fetch the complete documentation index at: https://help.peliqan.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Power BI

In Peliqan, go to Connections, find the Data Warehouse tile and copy/paste your connection details:

<img src="https://mintcdn.com/peliqan-9d7f0393/n7mbWWerGRtqvdxO/images/Connect%20your%20BI,%20DB%20tool%20or%20iPaaS/Microsoft%20Power%20BI/Data_warehouse_details.png?fit=max&auto=format&n=n7mbWWerGRtqvdxO&q=85&s=72f9d8ea1bae9974609208e3588b15ea" alt="Data warehouse details.png" style={{ width:"61%" }} width="708" height="1044" data-path="images/Connect your BI, DB tool or iPaaS/Microsoft Power BI/Data_warehouse_details.png" />

Use these settings in Microsoft Power BI to connect:

* **Connection type**: Postgres (default data warehouse type in Peliqan)
* **Server**:
  * [db.eu.peliqan.io](http://db.eu.peliqan.io)
  * [db.mydatacloud.com](http://db.mydatacloud.com)
  * [db.us.peliqan.io](http://db.us.peliqan.io)
  * … (check in your account under Connections > Data warehouse connection)
* **User name & password**: copy / paste from the **Data Warehouse** Connection tile (see above)
* **Database name**: same as the user name
* **SSL**: enabled

# Step by step

In Power BI, click on “Get Data” and then “More” or “Get data from another source”.

Select PostgreSQL from the list:

<img src="https://mintcdn.com/peliqan-9d7f0393/n7mbWWerGRtqvdxO/images/Connect%20your%20BI,%20DB%20tool%20or%20iPaaS/Microsoft%20Power%20BI/1_-_MS_Power_BI_select_Postgres_data_warehouse.png?fit=max&auto=format&n=n7mbWWerGRtqvdxO&q=85&s=c5958831a2ae1280890000a014bf5ed9" alt="1 - MS Power BI select Postgres data warehouse.png" style={{ width:"97%" }} width="1284" height="1400" data-path="images/Connect your BI, DB tool or iPaaS/Microsoft Power BI/1_-_MS_Power_BI_select_Postgres_data_warehouse.png" />

Paste the host name from the Peliqan data warehouse, e.g. `db.eu.peliqan.io` , the database name and click OK:

<img src="https://mintcdn.com/peliqan-9d7f0393/n7mbWWerGRtqvdxO/images/Connect%20your%20BI,%20DB%20tool%20or%20iPaaS/Microsoft%20Power%20BI/MS_Power_BI_set_server_and_database.png?fit=max&auto=format&n=n7mbWWerGRtqvdxO&q=85&s=5cc4aa61a768286ec93781886a0743ba" alt="MS Power BI set server and database.png" width="1484" height="748" data-path="images/Connect your BI, DB tool or iPaaS/Microsoft Power BI/MS_Power_BI_set_server_and_database.png" />

On the next screen, enter the database name from Peliqan and select “DirectQuery”. Note that the database name is the same as the user name (login). On the next screen, enter the login and password from Peliqan:

<img src="https://mintcdn.com/peliqan-9d7f0393/n7mbWWerGRtqvdxO/images/Connect%20your%20BI,%20DB%20tool%20or%20iPaaS/Microsoft%20Power%20BI/MS_Power_BI_set_login_and_password.png?fit=max&auto=format&n=n7mbWWerGRtqvdxO&q=85&s=96e49b157ad03fa8166e22934711e48c" alt="MS Power BI set login and password.png" width="1516" height="718" data-path="images/Connect your BI, DB tool or iPaaS/Microsoft Power BI/MS_Power_BI_set_login_and_password.png" />

\<aside><br />☝ When Power BI does **not** ask for a login and password, go to the Home menu ribbon, click on Transform Data and select “Data source settings” from the drop-down menu. Select the existing datasource and change its credentials, or remove it completely.<br />[Click here for more info](https://community.fabric.microsoft.com/t5/Desktop/postgresql-no-password-has-been-provided-but-the-backend/td-p/2114169).

\</aside>

Select the tables to include in Power BI:

<img src="https://mintcdn.com/peliqan-9d7f0393/n7mbWWerGRtqvdxO/images/Connect%20your%20BI,%20DB%20tool%20or%20iPaaS/Microsoft%20Power%20BI/Power_BI_select_tables.png?fit=max&auto=format&n=n7mbWWerGRtqvdxO&q=85&s=963bc82bb91194115b0392a967d8a28e" alt="Power BI select tables.png" width="1816" height="1472" data-path="images/Connect your BI, DB tool or iPaaS/Microsoft Power BI/Power_BI_select_tables.png" />

You can now build charts in Power BI:

<img src="https://mintcdn.com/peliqan-9d7f0393/n7mbWWerGRtqvdxO/images/Connect%20your%20BI,%20DB%20tool%20or%20iPaaS/Microsoft%20Power%20BI/MS_Power_BI_build_charts.png?fit=max&auto=format&n=n7mbWWerGRtqvdxO&q=85&s=d5f0c028d3c1c943535cdd00132686e7" alt="MS Power BI build charts.png" width="2906" height="1696" data-path="images/Connect your BI, DB tool or iPaaS/Microsoft Power BI/MS_Power_BI_build_charts.png" />

# Troubleshooting

### Error “Please install Npgsql version 4.0.10.0 or earlier”

A recent Windows update (August/September 2024) might cause issues for Power BI to connect to Postgres. The Peliqan built-in data warehouse runs on Postgres.

You might get the error “Please install Npgsql version 4.0.10.0 or earlier” when doing a Refresh in Power BI Desktop:

<img src="https://mintcdn.com/peliqan-9d7f0393/n7mbWWerGRtqvdxO/images/Connect%20your%20BI,%20DB%20tool%20or%20iPaaS/Microsoft%20Power%20BI/power_bi_postgres_error.png?fit=max&auto=format&n=n7mbWWerGRtqvdxO&q=85&s=29e73bf16e8ee4b76fead3838a77a503" alt="power bi postgres error.png" width="483" height="349" data-path="images/Connect your BI, DB tool or iPaaS/Microsoft Power BI/power_bi_postgres_error.png" />

In that case, please make sure to install the correct version of **Npgsql** on your Windows computer. **Npgsql** is the Postgres driver used by Power BI.

Download the MSI installer from this URL:

[https://github.com/npgsql/npgsql/releases/tag/v4.0.10](https://github.com/npgsql/npgsql/releases/tag/v4.0.10)

During install, make sure to install in GAC (Windows Global Assembly Cache):

<img src="https://mintcdn.com/peliqan-9d7f0393/n7mbWWerGRtqvdxO/images/Connect%20your%20BI,%20DB%20tool%20or%20iPaaS/Microsoft%20Power%20BI/Npgsql_install_GAC.png?fit=max&auto=format&n=n7mbWWerGRtqvdxO&q=85&s=5c9831bf1082899f28f79ff2fae5bc0a" alt="Npgsql install GAC.png" width="503" height="384" data-path="images/Connect your BI, DB tool or iPaaS/Microsoft Power BI/Npgsql_install_GAC.png" />

After install, reboot your computer !

Once you have rebooted, the Refresh in Power BI Desktop should work again.

### Error on SSL certificate (encryption)

Make sure to set the data source to “Encrypt connections”.

Settings > Data sources > Edit permissions > Check the checkbox “Encrypt connections”.

<img src="https://mintcdn.com/peliqan-9d7f0393/n7mbWWerGRtqvdxO/images/Connect%20your%20BI,%20DB%20tool%20or%20iPaaS/Microsoft%20Power%20BI/Power_BI_encrypt_connection.png?fit=max&auto=format&n=n7mbWWerGRtqvdxO&q=85&s=2fbc0d91e7ed3e8da5f4269d21140b0a" alt="Power BI encrypt connection.png" width="1836" height="1384" data-path="images/Connect your BI, DB tool or iPaaS/Microsoft Power BI/Power_BI_encrypt_connection.png" />

### Error “The remote certificate is invalid according to the validation procedure”

If you receive the error “The remote certificate is invalid according to the validation procedure”, this is because the root certificate used by the Peliqan data warehouse is not installed on your computer. You can verify this under Root Certificates in Certificate Manager `certmgr`.

Following certificate must be present: `Go Daddy Root Certificate Authority - G2`

Windows will automatically install the certificate when needed, however MDM solutions (Mobile Device Management) might have blocked automatic install of root certificates.

This can be checked in the Windows Registry under: `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\SystemCertificates\AuthRoot`.

Check if there is a DWORD `DisableRootAutoUpdate`. If the value is 1, auto updates are disabled. Change the value to 0 or manually install the certificate.

Download the root certificate for the Peliqan data warehouse:

peliqan\_dwh\_root\_certificate\_godaddy\_g2.pem

Or download `gdroot-g2.crt` from Godaddy: [https://aboutssl.org/go-daddy-root-certificates/](https://aboutssl.org/go-daddy-root-certificates/)

Make sure the “Intended Purpose” for the roort certificate is set to \<All> (Enable all purposes for this certificate), or that **Server Authentication** is checked. Double click the certificate in Certificate manager > tab Details > button “Edit Properties” > Certificate purposes:

<img src="https://mintcdn.com/peliqan-9d7f0393/n7mbWWerGRtqvdxO/images/Connect%20your%20BI,%20DB%20tool%20or%20iPaaS/Microsoft%20Power%20BI/Root_cert_purposes.png?fit=max&auto=format&n=n7mbWWerGRtqvdxO&q=85&s=92f00a2e35d248008f0d7752ef34c256" alt="Root cert purposes.png" style={{ width:"52%" }} width="1046" height="1418" data-path="images/Connect your BI, DB tool or iPaaS/Microsoft Power BI/Root_cert_purposes.png" />

If you don’t have sufficient permissions, contact your IT administrator and ask for the above root certificate to be installed.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.