Load data in a Dataverse table and build a dataflows monitoring report with Power BI

This tutorial demonstrates how to load data in a Dataverse table to create a dataflows monitoring report in Power BI.

Image of an example Power BI data monitoring dashboard.

You can use this dashboard to monitor your dataflows' refresh duration and failure count. With this dashboard, you can track any issues with your dataflows performance and share the data with others.

First, you'll create a new Dataverse table that stores all the metadata from the dataflow run. For every refresh of a dataflow, a record is added to this table. You can also store metadata for multiple dataflow runs in the same table. After the table is created, you'll connect the Power BI file to the Dataverse table.

Dataverse tutorial overview.

Prerequisites

Download the .pbit file

First, download the Dataverse .pbit file.

Create a new table in Dataverse

  1. Navigate to the Power Apps portal.

  2. On the left navigation pane expand Data, select Tables, and then select New table.

    Image with the new table dialog opened.

  3. In the New table pane:

    1. Enter Dataflows Monitoring in Display name.
    2. Under Primary Name Column, enter Dataflow name in Display name.
    3. Select Create.
  4. Select Add column to repeat adding columns for the following values:

    • Display name: "Dataflow Id", Data type: Text, Required: Required.
    • Display name: "Refresh Status", Data type: Text, Required: Required.
    • Display name: "Refresh Type", Data type: Text, Required: Required.
    • Display name: "Start Time", Data type: Date and Time, Required: Required.
    • Display name: "End Time", Data type: Date and Time, Required: Required.

    Image with the new column dialog opened.

Create a dataflow

If you don't already have one, create a dataflow. You can create a dataflow in either Power BI dataflows or Power Apps dataflows.

Create a Power Automate flow

  1. Navigate to Power Automate.

  2. Select Create > Automated cloud flow.

  3. Enter a flow name, and then search for the "When a dataflow refresh completes" connector. Select this connector from the list, and then select Create.

  4. Customize the connector. Enter the following information on your dataflow:

    • Group Type: Select Environment when connecting to Power Apps and Workspace when connecting to Power BI.
    • Group: Select the Power Apps environment or the Power BI workspace your dataflow is in.
    • Dataflow: Select your dataflow by name.
  5. Select New step to add an action to your flow.

  6. Search for the "Add a new row" connector from Dataverse, and then select it.

  7. In Add a new row, select Choose a table and then choose Dataflows Monitoring from the list.

    Image with the dataflows monitoring fields in the add a new row dialog box.

  8. For every required field, you need to add a dynamic value. This value is the output of the metadata of the dataflow that's run.

    1. Select the field next to Dataflow Name and then select Dataflow Name from the dynamic content.

      Image with the dataflow name dynamic content added to the dataflow name field.

    2. Repeat this process for all required fields.

      Image of the Add a new row connector with all the fields filled in with dynamic content.

  9. Save the flow.

Create a Power BI Report

  1. Open the .pbit file.

  2. Connect to your Dataverse entity Dataflows Monitoring.

In this dashboard, for every dataflow in your specified time interval, you can monitor:

  • The dataflow duration
  • The dataflow count
  • The dataflow failure count

The unique ID for every dataflow is generated by a merge between the dataflow name and the dataflow start time.