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

# Reporting, OData and PowerPivots

> Connect Excel PowerPivot to the FlowForma OData feed to import form, step, and question data and build advanced pivot table reports on your flows.

If you need more detailed reporting than activity monitoring can provide, FlowForma provides customised OData feeds of form progression, step details, and answers to questions. You can use these feeds in any reporting tool that supports OData, so you can set up advanced reporting based on your flows. Watch this quick overview video for more information:

<iframe width="100%" height="360" src="https://www.youtube.com/embed/z-1L91-9XKA" title="Reporting, OData and PowerPivots overview" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen />

The information below outlines the setup in Excel using PowerPivot.

<Info>
  Microsoft PowerPivot for Excel is an add-in that you can use to perform powerful data analysis in **Excel 2010 and above**.

  To bring in data from FlowForma, you must be a FlowForma administrator for the site you want to access. You can have one feed per site, and you can restrict data access on the feed as follows:

  * There is a single update feed per FlowForma site
  * Only members of the FlowForma Admins group can access the feed for that site
  * If you can access the feed, then you can get all data from that site
  * You can apply filters in PowerPivot to restrict the data set that inputs into the Pivot Table
</Info>

1. Open **Microsoft Excel 2010 or above**
2. Go to **file** and select **options**
3. Select the **add-ins** tab; then select **COM add-ins** from the **manage** drop-down menu and click **go**

   <img src="https://mintcdn.com/flowforma/46u--5D7TPNcEo4x/images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-1.png?fit=max&auto=format&n=46u--5D7TPNcEo4x&q=85&s=1f76274f06ec372780406a4114db69e3" alt="COM add-ins option in Excel options" width="922" height="776" data-path="images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-1.png" />
4. Select **Microsoft Office PowerPivot for Excel 2013** and **Power View**, then click **OK**.

   <img src="https://mintcdn.com/flowforma/46u--5D7TPNcEo4x/images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-2.png?fit=max&auto=format&n=46u--5D7TPNcEo4x&q=85&s=fca67f6df45e9fc38d3f1cdac9836c55" alt="Selecting PowerPivot and Power View add-ins" width="640" height="270" data-path="images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-2.png" />
5. Go to **POWERPIVOT** and select **manage** from the ribbon. A new window opens.

   <img src="https://mintcdn.com/flowforma/46u--5D7TPNcEo4x/images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-3.png?fit=max&auto=format&n=46u--5D7TPNcEo4x&q=85&s=0b9e826e50ad34d2d802ebee67fbf6ea" alt="Manage option on the PowerPivot ribbon" width="640" height="233" data-path="images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-3.png" />
6. Go to **get external data**, select **from data service** and then select **from OData data feed**

   <img src="https://mintcdn.com/flowforma/46u--5D7TPNcEo4x/images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-4.png?fit=max&auto=format&n=46u--5D7TPNcEo4x&q=85&s=3eb918a1913020c43a8fd1ec2b8ee15e" alt="Get external data from OData data feed" width="640" height="251" data-path="images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-4.png" />

   Click **advanced** to open the advanced features.

   <img src="https://mintcdn.com/flowforma/46u--5D7TPNcEo4x/images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-5.png?fit=max&auto=format&n=46u--5D7TPNcEo4x&q=85&s=cb9bd11990e29afaed4cb1ee6179b751" alt="Advanced connection settings" width="640" height="714" data-path="images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-5.png" />
7. Change SSPI to Basic, enter your **user ID** and **password**, then click **test connection**. If the test connection is successful, click **OK**, followed by **next**. The **table import wizard** opens. Select all items in **source table** and click **finish**.

   <img src="https://mintcdn.com/flowforma/46u--5D7TPNcEo4x/images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-6.png?fit=max&auto=format&n=46u--5D7TPNcEo4x&q=85&s=aa8857acd6af6d46376784b973eaf7a0" alt="Table import wizard source table selection" width="640" height="678" data-path="images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-6.png" />
8. In the **table import wizard**, enter the URL for the OData feed. The URL must be in the format: `https://odata-app.flowforma.com/{TOKEN}/_vti_bin/FlowFormaOData.svc/` (O365), or `http://siteurl/_vti_bin/flowformadata.svc/` (on-premise)

   <img src="https://mintcdn.com/flowforma/46u--5D7TPNcEo4x/images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-7.png?fit=max&auto=format&n=46u--5D7TPNcEo4x&q=85&s=4bb3ecf144d541113933d4dbd48ca6ba" alt="Entering the OData feed URL" width="640" height="317" data-path="images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-7.png" />
9. Once everything is imported, the **table import wizard** shows the status for each source table. Click **close**

   <img src="https://mintcdn.com/flowforma/46u--5D7TPNcEo4x/images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-8.png?fit=max&auto=format&n=46u--5D7TPNcEo4x&q=85&s=74943947fecb1aedbe10e01ace1e1531" alt="Table import wizard status for each source table" width="543" height="577" data-path="images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-8.png" />

Before creating a pivot table, you need to create relationships between tables. Go to **design** and select **create relationship** from the ribbon.

<img src="https://mintcdn.com/flowforma/46u--5D7TPNcEo4x/images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-9.png?fit=max&auto=format&n=46u--5D7TPNcEo4x&q=85&s=331812a61d2f9db56bca0bc0008eb3e5" alt="Create relationship option on the design ribbon" width="608" height="321" data-path="images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-9.png" />

You need to create the following relationships (in the image below, they are displayed right to left):

* FROM **Questions - StepUniqueID** TO **Steps - UniqueID**
* FROM **Steps - FormID** TO **Forms - FormID**
* FROM **Forms - FlowID** TO **Flows - FlowID**
* If you have repeating tables, you also need FROM **Repeating Table Rows - RepeatingTableEntity** TO **Questions - UniqueID**

If you prefer, you can also create relationships by using the **diagram view**, which you can select from the lower right corner of PowerPivot. To create a relationship, drag from one entity ID to another.

<img src="https://mintcdn.com/flowforma/46u--5D7TPNcEo4x/images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-10.png?fit=max&auto=format&n=46u--5D7TPNcEo4x&q=85&s=83626e590ee2e5efc63d287737d514a7" alt="Diagram view showing table relationships" width="1149" height="491" data-path="images/product/flowforma-reporting/reporting-odata-and-powerpivots/reporting-odata-and-powerpivots-10.png" />

To create the pivot table go to **home** and click **PivotTable**

To learn how to group data, you may find this short video of use:

<iframe width="100%" height="360" src="https://www.youtube.com/embed/TBgEuve_rRc" title="Grouping data in PivotTables" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen />
