Create a Power Automate visual for Power BI

APPLIES TO: Power BI Desktop Power BI service

When you create a Power Automate visual in a Power BI report, your end-users can run an automated flow, just by clicking a button in your report. Furthermore, the flow can be data contextual, meaning that the flow inputs can be dynamic, based on the filters the end-users set.

Flow button resized and repositioned on the report.

Add the Power Automate visual

  1. Select the Power Automate icon from the Visualizations pane.

    Screenshot of selecting the Power Automate icon from the Visualizations pane

    In Power BI Desktop, you can also add the visual from the ribbon. On the Insert tab, select Power Automate in the Power Platform section.

    Screenshot of selecting the Power Automate icon from the Insert ribbon.

    Once you select the visual, it automatically gets added to your current report page, with getting started instructions.

  1. Scroll, resize the visual, or select the Focus mode icon to see all the instructions.

    Screenshot showing Flow button resized and repositioned on the report.

  2. After you’ve reviewed the instructions, resize the button and place it where you’d like on the report.

Edit the flow

  1. With the flow selected, add any data fields to the Power Automate Data region, to be used as dynamic inputs to the flow.

    Screenshot shows control to add any fields you want as dynamic inputs.

  1. Select More options (...) > Edit to configure the button:

    Select Edit to edit the flow.

  1. In the edit mode of the visual, you either select an existing flow to apply to the button, or create a new flow to be applied to the button.

    Create a flow for a SharePoint list in Power B I.

  2. You can start from scratch or start with one of the built-in templates as an example. To start from scratch, select New > Instant cloud flow:

    New Instant cloud flow.

  3. Select New step.

    Start creating a flow from scratch.

  4. Here, you can choose a subsequent action or specify a Control if you want to specify additional logic to determine the subsequent action.

    Choose actions for the flow.

  5. Optionally, you can reference the data field(s) as dynamic content if you want the flow to be data contextual. This example uses the Region data field to create an item in a SharePoint list. Based on the end-user’s selection, Region could have multiple values or just one.

    Add dynamic content for the flow.

  6. After you’ve configured your flow logic, you can name the flow and select Save.

    Save the flow.

  7. Select the arrow button to go to the Details page of the flow you just created:

    Navigate to the Details page for the flow.

    Here's the Details page for a saved flow:

    The Details page for a saved flow.

  8. Select the Apply button to attach the flow you’ve created to your button.

Format the flow

Optionally, you can change the button text, font color, font size, or fill color of the button. These options along with other settings are available in the Format pane:

Format the flow.

Test the flow

After you've applied a flow to the button, we recommend testing it before you share the flow with others. These Power BI flows can only run in the context of a Power BI report. You can't run these flows in a Power Automate web app or elsewhere.

If your flow is data contextual, you'll want to test how the filter selections in the report impact the flow outcome.

  1. To test the flow in edit mode of the report, select Back to report, then press Ctrl while you select the button to run the flow.

    Select the Run flow button.

    The button text indicates that the flow has been triggered.

  2. To check if the flow has run successfully, select the More commands (...) menu > Details in the flow that has been triggered:

    Select Details on the More options menu.

  3. On the Details page, you can see the run history and status for the flow:

    See the run history on the Details page.

Share the flow

When the flow is running successfully, you can share it with your report readers.

  1. Select Edit in the Run only users section:

    Run only users.

  2. Specify which users or groups you want to give run access to:

    Manage run-only permissions.

Give users edit access

Alternatively, you can give any users edit access to the flow, not just run permissions.

  • Select Share , and specify the users or groups that you want to add as an owner:

    Share flow ownership with others.

Considerations and limitations

  • Additional manual inputs to the button aren't supported.
  • The visual isn't supported for embedded analytics.
  • The visual doesn't work in Publish to Web (public) scenarios, because unauthenticated scenarios aren't supported by Power Automate.
  • The visual doesn't support export scenarios.
  • Changing the environment is currently not supported.

For more information about Power Automate, take a look at the following articles: