# Microsoft Power BI connector

## Overview

In this article, you learn how to connect to Microsoft Power BI and how to consume your Sitefinity Insight marketing data to create reports.

> info **PREREQUISITES:**
>
> * You must have downloaded and installed the Power BI Desktop client from the Microsoft Download center or Microsoft Store.
> * For the Insight Power BI connector to work, you must have a paid Sitefinity Insight subscription or to be in active trial period.
>   For more information, or to upgrade your subscription, contact <sitefinitysales@progress.com>.
> * You must configure the security setting of Power BI to enable installing of unsigned extensions.  Perform the following:
>   1. In the toolbar, click *File » Options and settings » Options*.
>      The *Options* dialog appears.
>   2. Click *Security*.
>   3. Under *Data extensions*, click *Allow any extension to load without validation or warning*.
>   4. To confirm, click *OK*.
>   5. Restart Power BI.
> * To access data about Contacts and Interactions, you need to have activated Parquet data export.
>   For more information, see [Data export in Parquet format](https://www.progress.com/documentation/sitefinity-cms/insight/parquet).

## Install the connector

To install the Sitefinity Insight connector, perform the following:

1. Download the [Insight Power BI connector](https://cdn.insight.sitefinity.com/power-bi-connector/latest/Progress.Sitefinity.Insight.mez).
2. If Power BI is running, close it.
3. Place the downloaded file in `<Documents>\Power BI Desktop\Custom Connectors` directory.
   Where `<Documents>` is the path to your documents directory, usually located at `%userprofile%\Documents`. If this directory structure does not exist, you must create it manually.
4. Start Power BI.
5. To verify that the Sitefinity Insight connector is correctly installed, in the toolbar, click *Home* » *Get Data* » *Online* services and check that the connector named *Progress Sitefinity Insight (Beta)* exists.

## Connect to Power BI

To connect Power BI to your data in Sitefinity Insight, perform the following:

1. Generate a new Sitefinity Insight Access key.\
   For more information, see [Access keys](https://www.progress.com/documentation/sitefinity-cms/insight/connect-your-sites-to-insight#access-keys). Do not close the window with the generated key before using it in the steps below.

   > info  **RECOMMENDATION**: To improve security, we recommend generating a new access key and not reusing an existing one. Additionally, we recommend copying your access key from Sitefinity Insight Administration dashboard into Power BI and not storing it in clear text anywhere.
2. In the Power BI toolbar, click *Home » Get Data » Online services » Progress Sitefinity Insight (Beta) » Connect.*\
   If this is the first time you start the extension, the *Progress Sitefinity Insight Access Key* window appears.
3. Enter the access key from *Step 1* and click *Connect*.\
   The *Navigator* window opens.
4. Select the checkboxes of all the required metrics and click *Load*.\
   The *Load* window appears while Power BI connects to your data in Sitefinity Insight. Depending on the data set, this may take a few minutes.

> success **RESULT:** Your data from Sitefinity Insight is ready to use in Power BI.\
> For more information about building reports, see [Create reports and dashboards in Power BI](https://docs.microsoft.com/en-us/power-bi/create-reports/).

> info **NOTE**: If your access key grants access to multiple data centers, the data from all of them will be available inside Power BI.

## Insight data provided by the Power BI connector

In this section, you will a short description of the Insight metrics, artefacts, and auxiliary data that you can use in your Power BI reports. All of these are provided in Power BI tables.

The Sitefinity Insight connector exposes the data in a [Star schema](https://docs.microsoft.com/en-us/power-bi/guidance/star-schema). The values that you aggregate and show in reports are exposed as the following *Fact tables*:

 <table width="948" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="164" valign="top">
<strong>Sitefinity Insight Metric name</strong>
</td>
<td width="168" valign="top">
<strong>Power BI connector table</strong>
</td>
<td width="246" valign="top">
<strong>Short metric description</strong>
</td>
<td width="369" valign="top">
<strong>Visualized in Sitefinity Insight</strong>
</td>
</tr>
<tr>
<td width="164" valign="top">
<strong>Uplift</strong>
</td>
<td width="168" valign="top">
Uplift
</td>
<td width="246" valign="top">
The uplift, which a defined touchpoint, has towards a defined conversion.
</td>
<td width="369" valign="top"><ul>
<li><em>Uplift</em> screen</li>
<li><em>Touchpoints</em> details screen &raquo; <em>Conversion Uplift</em> section</li>
<li><em>Conversions</em> details screen &raquo; <em>Uplift by</em> touchpoints section</li>
</ul>
</td>
</tr>
<tr>
<td width="164" valign="top">
<strong>Conversions by persona statistics</strong>
</td>
<td width="168" valign="top">
ConversionsByPersona
</td>
<td width="246" valign="top">
<p>The number of times each defined persona has converted for each defined conversion.</p>
<p>This metric is provided for each of the default periods.</p>
</td>
<td width="369" valign="top"><ul>
<li><em>Conversions</em> details screen &raquo; <em>Conversions by persona</em> section</li>
<li><em>Personas</em> details screen &raquo; <em>Conversions</em> tab</li>
</ul>
</td>
</tr>
<tr>
<td width="164" valign="top">
<strong>Unique daily conversions</strong>
</td>
<td width="168" valign="top">
ConversionsDaily
</td>
<td width="246" valign="top">
The number of unique conversions per day for each of the conversions defined in Sitefinity Insight
</td>
<td width="369" valign="top"><ul>
<li>Conversions screen</li>
<li>Conversion&rsquo;s details screen &raquo; <em>Unique conversions</em> chart</li>
</ul>
</td>
</tr>
<tr>
<td width="164" valign="top">
<strong>Conversion statistics per period</strong>
</td>
<td width="168" valign="top">
ConversionsPerPeriod
</td>
<td width="246" valign="top">
<p>Provides the following statistics for each defined conversion for all of the default periods.</p>
<p>All statistics in the period are provided for the current and previous periods, as well as for all time:</p><ul>
<li>Total conversions</li>
<li>Unique conversions</li>
<li>Contacts converted</li>
<li>New contacts converted</li>
<li>Visitors in segment</li>
</ul>
</td>
<td width="369" valign="top">
<em>Conversions</em> details screen
</td>
</tr>
<tr>
<td width="164" valign="top">
<strong>Lead scoring stages daily statistics</strong>
</td>
<td width="168" valign="top">
LeadsDaily
</td>
<td width="246" valign="top">
A daily statistic, showing how many contacts and visitors have passed a certain lead scoring stage for a given day
</td>
<td width="369" valign="top">
<em>Lead Scoring</em> details screen &raquo; <em>Threshold passes</em> chart
</td>
</tr>
<tr>
<td width="164" valign="top">
<strong>Daily persona passes</strong>
</td>
<td width="168" valign="top">
PersonasDaily
</td>
<td width="246" valign="top">
The number of visitors and contacts, which have passed the persona threshold for a given day
</td>
<td width="369" valign="top">
<em>Personas</em> details screen &raquo; <em>Visitors passed persona threshold</em> chart
</td>
</tr>
<tr>
<td width="164" valign="top">
<strong>Persona period statistics</strong>
</td>
<td width="168" valign="top">
PersonasPerPeriod
</td>
<td width="246" valign="top">
<p>Provides the following statistics for each defined persona for all of the default periods.</p>
<p>All statistics in the period are provided for the current and previous periods, as well as for all time:</p><ul>
<li>Visitors recognized as a given persona</li>
<li>Contacts recognized as a given persona</li>
<li>Percentage of total visitors recognized as a given persona</li>
</ul>
</td>
<td width="369" valign="top">
<em>Personas</em> details screen
</td>
</tr>
<tr>
<td width="164" valign="top">
<strong>Touchpoint hits by persona</strong>
</td>
<td width="168" valign="top">
TouchpointHitsByPersona
</td>
<td width="246" valign="top">
The number of times each defined persona has hit a manually defined touchpoint. This metric is provided for all of the default periods
</td>
<td width="369" valign="top">
<p><em>Personas</em> details screen &raquo; <em>Touchpoints</em> tab</p>
<p><em>Touchpoints</em> details screen &raquo; <em>Hits by persona</em> section</p>
</td>
</tr>
<tr>
<td width="164" valign="top">
<strong>Daily touchpoints statistics</strong>
</td>
<td width="168" valign="top">
TouchpointsDaily
</td>
<td width="246" valign="top">
The number of unique and total hits each defined touchpoint has for a given day
</td>
<td width="369" valign="top">
<em>Touchpoints</em> details screen &raquo; <em>Daily hits</em> chart
</td>
</tr>
<tr>
<td width="164" valign="top">
<strong>Touchpoint period statistics</strong>
</td>
<td width="168" valign="top">
TouchpointsPerPeriod
</td>
<td width="246" valign="top">
<p>Provides the following statistics for each defined touchpoint for all of the default periods.</p>
<p>All statistics in the period are provided for the current and previous periods, as well as for all time:</p><ul>
<li>Total hits</li>
<li>Unique hits</li>
<li>Total conversions</li>
<li>Visitors converted</li>
<li>Contact converted</li>
<li>Contact hits</li>
</ul>
</td>
<td width="369" valign="top">
<em>Touchpoints</em> details screen
</td>
</tr>
<tr>
<td width="164" valign="top">
<strong>Daily data center visitors statistics</strong>
</td>
<td width="168" valign="top">
VisitorsDaily
</td>
<td width="246" valign="top">
The number of new visitors and contacts in the datacenter for a given day
</td>
<td width="369" valign="top">
<em>Datacenter</em> dashboard screen
</td>
</tr>
<tr>
<td width="164" valign="top">
<strong>Data center visitors period statistics</strong>
</td>
<td width="168" valign="top">
VisitorsPerPeriod
</td>
<td width="246" valign="top">
<p>Provides the following statistics for each data center for all of the default periods.</p>
<p>All statistics in the period are provided for the current and previous periods, as well as for all time and the improvement of the current period compared to the previous one:</p><ul>
<li>New contacts</li>
<li>Unique active visitors</li>
</ul>
</td>
<td width="369" valign="top">
<em>Datacenter</em> dashboard screen
</td>
</tr>
<tr>
<td width="164" valign="top"><strong>Contacts</strong></td>
<td width="168" valign="top">Contacts</td>
<td width="246" valign="top">Contains the complete demographic information about all Contacts in the data centers that are accessible with the provided access key, including all predefined and custom properties.</td>
<td width="369" valign="top">
<em>Contacts</em> screen.

> info  **NOTE**: This table is available only when you have configured Parquet file export.
> For more information, see [Data export in Parquet format](https://www.progress.com/documentation/sitefinity-cms/insight/parquet).

</td>
</tr>
<tr>
<td width="164" valign="top"><strong>Interactions</strong></td>
<td width="168" valign="top">Interactions</td>
<td width="246" valign="top">Contains all the interactions contained in the data centers that are accessible with the provided access key.</td>
<td width="369" valign="top">The <em>Journey</em> part of the <em>Contacts</em> screen.

> info  **NOTE**: This table is available only when you have configured Parquet file export.
> For more information, see [Data export in Parquet format](https://www.progress.com/documentation/sitefinity-cms/insight/parquet).

</td>
</tr>
<tr>
<td width="164" valign="top"><strong>Not Applicable</strong></td>
<td width="168" valign="top">Mappings</td>
<td width="246" valign="top">You use the information in the <em>Mappings</em> table to create a unified journey for any given contact when the physical person uses multiple devices or browsers.</td>
<td width="369" valign="top">This information is not directly accessible inside the Sitefinity Insight web app<em>.</em>

> info  **NOTE**: This table is available only when you have configured Parquet file export.
> For more information, see [Data export in Parquet format](https://www.progress.com/documentation/sitefinity-cms/insight/parquet).

</td>
</tr>
</tbody>
</table>

Information, such as the name of the Conversion, Touchpoint, the period, or the name of the datacenter, are exposed in the following *Dimension tables*:

 <table width="948" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="167" valign="top">
<strong>Sitefinity Insight Artefact name</strong>
</td>
<td width="150" valign="top">
<strong>Power BI connector table</strong>
</td>
<td width="251" valign="top">
<strong>Short artefact description</strong>
</td>
<td width="381" valign="top">
<strong>Visualized in Sitefinity Insight</strong>
</td>
</tr>
<tr>
<td width="167" valign="top">
<strong>Conversions</strong>
</td>
<td width="150" valign="top">
Conversions
</td>
<td width="251" valign="top">
The conversions defined in Sitefinity Insight
</td>
<td width="381" valign="top">
<em>Conversions</em> screen
</td>
</tr>
<tr>
<td width="167" valign="top">
<strong>Lead scoring stages</strong>
</td>
<td width="150" valign="top">
Leads
</td>
<td width="251" valign="top">
All lead scorings stages for each of the lead scoring defined in Sitefinity Insight along with their threshold, the number of visitors and contacts currently in the stage, and the number of visitors that have ever passed the stage
</td>
<td width="381" valign="top"><ul>
<li><em>Lead Scoring</em> screen</li>
<li><em>Lead Scoring</em> details screen &raquo; <em>Visitors per stage</em> charts</li>
</ul>
</td>
</tr>
<tr>
<td width="167" valign="top">
<strong>Personas</strong>
</td>
<td width="150" valign="top">
Personas
</td>
<td width="251" valign="top">
The personas, defined in Sitefinity Insight, along with their threshold
</td>
<td width="381" valign="top">
<em>Personas</em> screen
</td>
</tr>
<tr>
<td width="167" valign="top">
<strong>Touchpoints</strong>
</td>
<td width="150" valign="top">
Touchpoints
</td>
<td width="251" valign="top">
The touchpoints that you have manually defined in Insight, along with their all-time unique and total hits
</td>
<td width="381" valign="top">
<em>Touchpoints</em> screen
</td>
</tr>
<tr>
<td width="167" valign="top">
<strong>Data centers</strong>
</td>
<td width="150" valign="top">
Datacenters
</td>
<td width="251" valign="top">
Your Sitefinity Insight data centers. The Power BI table includes the count of all Insight artefacts in the data center, for example &ndash; touchpoint or conversions, as well as the number of visitors reported.
</td>
<td width="381" valign="top"><ul>
<li><em>Analytics</em> screen</li>
<li><em>Administration</em> &raquo; <em>Datacenters</em> screen</li>
</ul>
</td>
</tr>
<tr>
<td width="167" valign="top">
<strong>Statistics Periods</strong>
</td>
<td width="150" valign="top">
Periods
</td>
<td width="251" valign="top">
<p>The predefined periods, for which most artefact statistics in Insight are calculated.</p>
<p>Supported periods are:</p><ul>
<li>Yesterday</li>
<li>Last 7 days</li>
<li>Last 30 days</li>
<li>Last 3 months</li>
<li>Last 6 months</li>
</ul>
</td>
<td width="381" valign="top"><ul>
<li><em>Analytics</em> all and details artefacts screens</li>
<li><em>Analytics</em> &raquo; <em>Dashboard</em> screen</li>
</ul>
</td>
</tr>
</tbody>
</table>

All data is refreshed daily in Sitefinity Insight, and there is no need to update your Power BI reports with higher frequency.

Once you choose which ones you want to use, you can see their relations, by using the [Modeling view](https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-modeling-view) of your Power BI report.

## Sample report

To see a sample report in Power BI, click [Sitefinity Insight Sample Report](https://cdn.insight.sitefinity.com/power-bi-connector/0.0.1/Template.Sitefinity.Insight.Report.pbit).
