Become a Dynamics 365 expert with Syvantis Learn
Provide additional details about the offer you're running.
This store requires javascript to be enabled for some features to work correctly.
Provide additional details about the offer you're running.
Embedding a Power App in a Power BI report
Power Apps • Power BI & Fabric • Power Platform
This Fast Class shows how Microsoft Power Apps and Power BI can work together to make reports more interactive. Using a sales-goal example, you’ll see how to embed a Power App in a Power BI report, connect it to underlying data, update records without leaving the report, and add actions such as sending emails.
Power BI is designed to help users explore and understand data through reports and visualizations. However, there are situations where users need to do more than view information. They may need to update a record, perform an action, or send an email based on what they see in a report. Embedding a Power App in a Power BI report gives users a way to perform those actions without continually switching between Power BI and the system where the underlying data is stored.
The example Power BI report
This example uses a sales report that tracks actual revenue against sales goals for different locations. Users can select a location to see its sales performance and progress toward its revenue goal. The goal is to let users update those sales goals directly from Power BI. Instead of viewing a number in Power BI, navigating to another system, changing the underlying record, and returning to the report, the user can make the change through an embedded Power App.
Adding the Power Apps visual
Power BI includes a Power Apps visual that provides the connection between a report and a Power App. After adding the visual to a report, you select the Power BI data that you want to pass to the app. In this example, the location field is added so the Power App can identify the location selected within the report. After configuring the visual, you can either connect an existing Power App or create a new one.
Creating the Power App
If you create a new Power App from the visual, Power Apps opens with the connection to your Power BI data already established. By default, the app can display the information coming from Power BI in a gallery. A gallery works well when you want to display and interact with multiple records. For this example, however, the goal is to work with one location at a time. An edit form is used instead so the user can view and modify information for the selected location.
Connecting to the underlying data source
The Power App can also connect directly to the system where the report's data is stored. In this example, the underlying data is stored in SQL Server. The app connects to that source and uses the location selected in Power BI to determine which SQL record should appear in the form. This creates a connection between:
The app can then work with the underlying record rather than simply displaying the information passed from Power BI.
Matching Power BI data to the correct record
Because Power BI can pass multiple records to Power Apps, the app needs to know which record it should use.
In this example, the app is configured to use the first location selected in Power BI and look up the corresponding record in the SQL data source. The completed app is also designed so the user works with one selected location at a time. This allows the app to display the correct goal information whenever a location is selected in the report.
Saving and publishing the app
Once the Power App has been configured, save and publish it. Publishing makes the app available to the Power Apps visual that was added to the Power BI report. After returning to Power BI, you can select the published app and display it directly within the report.
Updating data from Power BI
With the finished Power App embedded in the report, selecting a location in Power BI also loads that location's information in the app. For example, if a location has a sales goal of $23,000, the user can change the goal to $30,000 and select the option to update it. The Power App writes the change back to the SQL database. The updated information can then be reflected in Power BI, rather than existing only temporarily in the report.
For this example, DirectQuery is used so that the updated information can be pushed back to Power BI immediately. DirectQuery is available for SQL databases and Dataverse, although availability depends on the data source.
Adding other actions to the report
Updating records isn't the only action you can make available through an embedded Power App.
The example also provides an option for sending an email. A user can enter a message and send it without leaving the Power BI experience. The app could also use information from the selected location to help determine the appropriate recipient or include other relevant information.
This demonstrates how Power Apps can add operational functions alongside the analytical information already available in a Power BI report.
Creating a more interactive reporting experience
Embedding Power Apps can turn a Power BI report from a primarily analytical experience into a place where users can also take action.
Instead of requiring users to understand where information is stored or move between multiple applications, you can bring common actions directly into the report they already use. This can streamline processes such as updating records, communicating about data, and performing other administrative tasks.
* This transcript summary has been generated from the Fast Class video by Microsoft Copilot. The Fast Class itself was prepared and taught by Syvantis expert consultants.
TUNE INTO THE LIVE CLASS
Ask your questions and get real-time responses from your trusted Syvantis consultants.
What's on the schedule?
Dynamics 365 Business Central
Dynamics 365 Sales (CRM)
Dynamics 365 Customer Insights
Power Platform
Keep learning...
Business Process Designers. Technical Experts. Dedicated Partners.