> For the complete documentation index, see [llms.txt](https://support.pears.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.pears.io/analyze/data-mart/setting-up-power-bi.md).

# Setting up Power BI

The PEARS data mart can be used in combination with [Power BI](https://www.microsoft.com/en-us/power-platform/products/power-bi) as follows.

## Prerequisites

{% stepper %}
{% step %}

#### Install Power BI Desktop

Visit <https://www.microsoft.com/en-us/power-platform/products/power-bi/desktop> to install Power BI Desktop, if you haven't already.

{% hint style="info" %}
**TIP:** Power BI Desktop is also available in the Microsoft Store on Windows computers.
{% endhint %}
{% endstep %}

{% step %}

#### Confirm firewall access

Check with the PEARS Client Success team to ensure the IP address of the computer or server from which you will be connecting has been added to the data mart firewall.
{% endstep %}

{% step %}

#### Confirm network access

Check with your IT staff to ensure incoming and outbound traffic on the data mart port is allowed to the computer or server from which you will be connecting.
{% endstep %}

{% step %}

#### Obtain credentials

Obtain the host, port, database, user, and password from the PEARS Client Success team.
{% endstep %}
{% endstepper %}

## Setup

Power BI can connect directly to the data mart using the PostgreSQL provider, [npgsql](https://www.npgsql.org/). This provider and its necessary drivers are installed with Power BI Desktop and Power BI Gateway. However, before a trusted connection can be established with the data mart, Amazon's RDS certificates must be imported on each device into the **Trusted Root Certification Authorities** store.

{% stepper %}
{% step %}

#### Download the certificate bundle

Download a [certificate bundle from Amazon](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL-certificate-rotation.html). You will either need the specific bundle for the us-east-1 region or the AWS global bundle.

* Global (any AWS region): <https://truststore.pki.rds.amazonaws.com/global/global-bundle.p7b>
* US East (N. Virginia): <https://truststore.pki.rds.amazonaws.com/us-east-1/us-east-1-bundle.p7b>
  {% endstep %}

{% step %}

#### Open Certificate Manager

Open the Certificate Manager on Windows.

* Administrators can import certificates for the entire local machine by going to **Manage computer certificates** in the Control Panel.
* Otherwise, any user can import into their own stores by going to **Manage user certificates** in the Control Panel.
  {% endstep %}

{% step %}

#### Start the Import wizard

Right-click on the folder named **Trusted Root Certification Authorities**, then select **All Tasks → Import…**.
{% endstep %}

{% step %}

#### Browse for the certificate file

Click through the wizard, browsing for the file downloaded in the first step when prompted for a file name.

{% hint style="warning" %}
**NOTE:** The default file type in the dialog is *X.509 Certificate*. You will need to change this to *PKCS #7 Certificates* or *All Files* to find the certificate file you downloaded.
{% endhint %}
{% endstep %}

{% step %}

#### Confirm the certificate store

Continue through the wizard, confirming the certificates will be placed in the certificate store **Trusted Root Certification Authorities**.
{% endstep %}

{% step %}

#### Verify the import

Once finished, you should see a message indicating success, such as "The import was successful."
{% endstep %}
{% endstepper %}

## Usage

Once you are ready to connect in Power BI, follow the link **Get data from another source** on the startup page, or from the toolbar: **Get Data → More…**. In the **Get Data** window that's presented, select **PostgreSQL database** as the connector. You will be prompted for the following:

* **Server** — Use the format `<host name>:<port>`.
  * The port is provided in this field along with the host name, separated by a colon (`:`) between the two.
* **Database** — The data mart database name provided by the PEARS Client Success team.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://support.pears.io/analyze/data-mart/setting-up-power-bi.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
