Have you ever needed to make real-time updates to the underlying data in a Power BI report? In this example scenario, the IT team wants to be able to update ticket request statuses in their daily standup to review open tickets. We can achieve this by embedding a canvas app in their Power BI report. As a bonus, in the last section we’ll also add a report page where users can submit a new help desk request without leaving the dashboard.

🗒️Table of Contents

Solution Overview

In the dashboard, users select a record from a table of all Help Desk tickets and click drill-through to get to this details page. This page shows the selected ticket’s title and table of information on the left. On the right is an embedded canvas app where users can make real-time updates to the ticket’s information.

image.png

Setting Up the Power BI Report

When embedding a canvas app to show real-time updates to data, you must connect to the data using DirectQuery.

<aside> <img src="notion://custom_emoji/315004be-2b85-4043-bee7-97c1ef7a29d4/169f74e6-22e2-8044-af53-007a63b80d80" alt="notion://custom_emoji/315004be-2b85-4043-bee7-97c1ef7a29d4/169f74e6-22e2-8044-af53-007a63b80d80" width="40px" />

NOTE: SharePoint is not currently supported with DirectQuery mode. I am using a Dataverse table. For more information on DirectQuery, check out the Microsoft documentation.

</aside>

image.png

In my example:

<aside> 💡

IMPORTANT! Publish your report to Power BI Service before going any further! We will add and configure the Power Apps visual from Service, not Desktop.

</aside>

Setting Up the Canvas App

  1. From your published report in Power BI Service, click Edit.
  2. Insert the Power Apps for Power BI visual and resize/reposition as needed.
  3. Add any fields you want to include in your app into the PowerApps Data well. For my example, I want to be able to update the Status, Category, Priority, and Working Notes columns from my app. Also add your unique identifier column (ID in my case).

image.png

  1. If you have already created your canvas app and simply want to embed it, click Choose App. Otherwise, click Create new to design your canvas app. Click OK on the Open Browser dialogue and the Power Apps studio will open in a new tab. I’m clicking Create New. Choose Go to Power Apps studio to design your canvas app.

<aside> ⚠️

If you want to be able to write back to your data source and have that information automatically appear in your dashboard, you need to click Create New. There is a known limitation when adding an existing canvas app to Power BI where you can’t trigger the real-time refresh.

</aside>

image.png