---
title: Visualizing Xperience data in Power BI
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

[Microsoft Power BI](https://powerbi.microsoft.com/en-us/what-is-power-bi/) is a suite of business analytics tools that allow you to analyze and visualize data. You can use Power BI to process any data stored in the Xperience database (for example, the information and statistics collected by Xperience on-line marketing features, such as [Contact management,](https://docs.kentico.com/13/on-line-marketing-features/managing-your-on-line-marketing-features/contact-management.md) [Email marketing](https://docs.kentico.com/13/on-line-marketing-features/managing-your-on-line-marketing-features/email-marketing.md), or [Web analytics](https://docs.kentico.com/13/on-line-marketing-features/managing-your-on-line-marketing-features/web-analytics.md)).

By default, the [Xperience Power BI reports](http://devnet.kentico.com/marketplace/integration/kentico-power-bi-reports) package provides 25+ Power BI reports that allow you to visualize and analyze the performance of your email marketing campaigns. This includes a detailed analysis of email opens, clicks, and link performance.

![Email marketing data visualizations in Power BI](https://docs.kentico.com/docsassets/13/visualizing-xperience-data-in-power-bi/Power_BI.png "Email marketing data visualizations in Power BI")

Use the following process to work with Xperience data in Power BI:

1. [Prepare reports in Power BI Desktop](#preparing-reports-in-power-bi-desktop)
2. [Publish the reports to the Power BI service](#publishing-reports-to-the-power-bi-service)
3. [(Optional) Set up a Power BI Personal Gateway to handle refreshing of your data](#refreshing-report-data)

## Preparing reports in Power BI Desktop

We recommend using our predefined email marketing template as a starting point for all Power BI reports that contain Xperience data:

1. Download and install [Power BI Desktop](https://www.microsoft.com/en-us/download/details.aspx?id=58494).
2. Download the [Xperience Power BI reports](http://devnet.kentico.com/marketplace/integration/kentico-power-bi-reports) from the Kentico Marketplace. Select the version matching your Xperience instance.
3. Extract the **pbit** template file from the package and open it in Power BI Desktop.
4. Fill in the database connection parameters:
   - **Server** – the name of the SQL server hosting your Xperience database.
   - **Database** – the name of your Xperience database on the given server.
5. Click **Load**.
6. Approve the running of native queries by clicking **Run**.
7. Fill in credentials that have access to your Xperience database and click **Connect**.
8. If necessary, allow access to the data source using an unencrypted connection (click **OK**).
9. Click **Save** and save the result as a new **Power BI File (\*.pbix)**.

The file is now configured and the reports display data from your Xperience database. You can [adjust the report content](https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-report-view/) according to your own requirements.

If you wish to work with other types of reports than the default ones for email marketing, developers need to [create new queries](https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-query-overview/) that load the required data from the Xperience database.

## Publishing reports to the Power BI service

After you prepare a Power BI Desktop file (_pbix_ extension) that suits your requirements, deploy it to the Power BI service (<https://app.powerbi.com/>). The cloud-based service allows users to access the data and reports from anywhere.

For detailed instructions, please see [Get data from Power BI Desktop files](https://powerbi.microsoft.com/en-us/documentation/powerbi-service-powerbi-desktop-files/) in the Power BI documentation.

### Refreshing report data

As your Xperience websites run and evolve, the data visualized by your Power BI reports changes. To ensure that the content of your reports is up-to-date without the need to manually republish your Power BI Desktop file, we recommend setting up _automatic data refresh_.

> **Info:** **Requirements**
>
> - Power BI Pro
> - 64-bit Windows operating system

1. Install a **Power BI Personal Gateway** on a machine with access to your Xperience database.
2. Schedule a refresh in Power BI.
3. Make sure the machine with your Personal Gateway is running and available at the scheduled refresh times.

For detailed instructions, please see [Power BI Gateway - Personal](https://powerbi.microsoft.com/en-us/documentation/powerbi-personal-gateway/) in the Power BI documentation or the related [video](https://www.youtube.com/watch?v=de58vROLqZI).
