Query using Microsoft Power BI Desktop

You can use Microsoft Power BI Desktop to access data from the Reporting API and create custom reports.

Connect to the Reporting API

Note: You must complete these steps the first time you use a Microsoft Power BI Desktop file to connect to the Reporting API. Ensure you have the API Key. For more information, see Create API Key.

  1. Open a new file in Microsoft Power BI Desktop.
  2. Click Get Data > OData feed.
  3. In the OData feed dialog box, type the URL for your region in the URL field.

    Based on your region, use one of the following URLs to connect to the Reporting API.

    Region

    Reporting API URL

    Australiahttps://au-reporting.promapp.io/odata

    United States

    https://us-reporting.promapp.io/odata

    Europe

    https://eu-reporting.promapp.io/odata

    Canada

    https://ca-reporting.promapp.io/odata

    UAEhttps://ae-reporting.promapp.io/odata

  4. Click OK.
  5. From the Authentication options select Basic.

  6. Specify Promaster as the User name.

  7. Copy and paste the API Key as the Password.

  8. Click Connect

In some configurations you can't use Basic authentication, such as when using multiple tenants. For these configurations you must use bearer tokens, as shown below:

You can save the file with the configured values and use the Power Query Editor to customize data and create reports.

Create a report

After you have connected to the Reporting API Odata feed, you can use the Microsoft Power BI file to create custom reports.

  1. Open the file in Microsoft Power BI Desktop.
  1. Click Edit Queries > Edit Queries.
  1. In the Power Query Editor window, the list of tables for the supported endpoints is displayed. For more information about the endpoints, see API Reference.

Note: The Discover table is only a placeholder for OData feed validation and this link will not display any data.

  1. In the Data column, click on the Table link to display data for the corresponding table. The table fields are displayed with the corresponding data in rows. For more information about the columns, see the Properties tables in API Reference.
    • To select a different table:
      • Click View > Query Settings.
      • On the right pane, click Query Settings > Source to display the list of available tables.
    • To refresh data, click Refresh Preview > Refresh All. The data is not refreshed in real-time and it can take up to 8 hours to fetch the updated details.

You can use the Power Query Editor to customize data and create reports. For more information, see the Microsoft Power BI documentation.