Skip to content

Commit 0b4bdb5

Browse files
authored
Merge pull request #3208 from MicrosoftDocs/matp-1953441
Revised per 1953441
2 parents 7474ae0 + 216a25b commit 0b4bdb5

File tree

1 file changed

+34
-13
lines changed

1 file changed

+34
-13
lines changed

powerapps-docs/maker/model-driven-apps/embed-powerbi-report-in-system-form.md

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
title: "Embed a Power BI report in a model-driven system form | MicrosoftDocs"
33
ms.custom: ""
4-
ms.date: 03/05/2019
5-
ms.reviewer: ""
4+
ms.date: 08/04/2020
65
ms.service: powerapps
76
ms.topic: "get-started-article"
87
author: "adrianorth"
@@ -28,7 +27,7 @@ This feature requires exporting a solution, modifying it to add the xml snippet,
2827
You can use your Power BI reports and tiles by simply embedding them, and get the exact same report. This does not involve contextualizing them to the current model-driven form, and hence you get the same report or tile on all records of the entity. For example, the following report shows the geographic ___location of all accounts at once, and is useful to show summary information.
2928

3029
> [!div class="mx-imgBorder"]
31-
> ![](media/embed-powerbi/embed-powerbi-report-in-system-form-unfiltered.png "Embed-powerbi-report-in-system-form-unfiltered")
30+
> ![Embeded Power BI report without contextual filtering](media/embed-powerbi/embed-powerbi-report-in-system-form-unfiltered.png "Embeded Power BI report without contextual filtering")
3231
3332
You can embed a section that hosts Power BI reports and tiles in your system forms by adding the following code snippet inside the `<sections>` block of the form XML. Then, import the solution in the target environment.
3433

@@ -71,7 +70,7 @@ You can embed a section that hosts Power BI reports and tiles in your system for
7170
You can make the Power BI reports and tiles more meaningful by applying contextual filters to the current model-driven form, so that the report or tile is filtered based on attributes of the current record. For example, the following report shows the geographic ___location of an account, by filtering the Power BI report using the account name. This allows a single report to show contextualized information for all records of the entity.
7271

7372
> [!div class="mx-imgBorder"]
74-
> ![](media/embed-powerbi/embed-powerbi-report-in-system-form-filtered.png "Embed-powerbi-report-in-system-form-filtered")
73+
> ![Embeded Power BI report with contextual filtering](media/embed-powerbi/embed-powerbi-report-in-system-form-filtered.png "Embeded Power BI report with contextual filtering")
7574
7675
The filtering is done by adding a `<PowerBIFilter>` element in the `<parameter>` block as shown here. You can use any attribute of the form's entity to construct the filter expression. More information: [Constructing Filters](https://github.com/Microsoft/PowerBI-JavaScript/wiki/Filters#contructingfilters) to understand how to create your own filters.
7776

@@ -117,24 +116,46 @@ The target part of the previous expression identifies the table and the column t
117116

118117
You can create more complex filter expressions by looking at examples from [Constructing Filters](https://github.com/Microsoft/PowerBI-JavaScript/wiki/Filters#contructingfilters) and providing the appropriate values for $schema and filterType. Be sure to escape every literal in the filter part using *\"*, so that the JSON is generated correctly.
119118

119+
## Remove unmodified attribute before import
120+
Before you import the solution into the target environment, make sure the unmodified attribute isn’t included in formXml section of the customizations.xml file. If the unmodified attribute is present in the XML that includes the Power BI control XML, remove the attribute before you import the solution into the target environment. For example, replace `<systemform unmodified="1">` with `<systemform>`.
121+
122+
Additionally, when you export the solution as managed, add the **solutionaction="Added"** attribute to the formXml as indicated in the **cell** element below:
123+
124+
```xml
125+
<cell id="{7d18b61c-c588-136c-aee7-03e5e74a09a1}" showlabel="true" rowspan="20" colspan="1" auto="false" solutionaction="Added">
126+
<labels>
127+
<label languagecode="1033" description="Accounts (Parent Account)"/>
128+
</labels>
129+
<control id="unfilteredreport" classid="{8C54228C-1B25-4909-A12A-F2B968BB0D62}">
130+
<parameters>
131+
<PowerBIGroupId>00000000-0000-0000-0000-000000000000</PowerBIGroupId>
132+
<PowerBIReportId>544c4162-6773-4944-900c-abfd075f6081</PowerBIReportId>
133+
<TileUrl>https://xyz.powerbi.com/reportEmbed?reportId=544c4162-6773-4944-900c-abfd075f6081</TileUrl>
134+
</parameters>
135+
</control>
136+
</cell>
137+
```
138+
139+
140+
120141
## Known issues and limitations
121-
1. This integration is available only in the Unified Interface client, on supported web browsers and mobile devices.
122-
2. Opening this form in the Power Apps form designer will not show the control in a meaningful way. This is because the control is customized outside of the form designer.
123-
3. Users will be authenticated into Power BI automatically with their Power Apps username and password. If a Power BI account with matching credentials doesn’t exist, a sign in prompt is displayed as illustrated here.
142+
- This integration is available only in the Unified Interface client, on supported web browsers and mobile devices.
143+
- Opening this form in the Power Apps form designer will not show the control in a meaningful way. This is because the control is customized outside of the form designer.
144+
- Users will be authenticated into Power BI automatically with their Power Apps username and password. If a Power BI account with matching credentials doesn’t exist, a sign in prompt is displayed as illustrated here.
124145

125146
> [!div class="mx-imgBorder"]
126-
> ![](media/embed-powerbi/embed-powerbi-report-in-system-form-auth-1.png "Embed-powerbi-report-in-system-form-auth-1")
147+
> ![Power BI sign in prompt](media/embed-powerbi/embed-powerbi-report-in-system-form-auth-1.png "Power BI sign in prompt")
127148
128-
4. No data will display if an incorrect account is used to log into Power BI. To sign in with the correct credentials, sign out, and then sign in again.
149+
No data will display if an incorrect account is used to log into Power BI. To sign in with the correct credentials, sign out, and then sign in again.
129150

130151
> [!div class="mx-imgBorder"]
131-
> ![](media/embed-powerbi/embed-powerbi-report-in-system-form-auth-2.png "Embed-powerbi-report-in-system-form-auth-2")
152+
> ![Sign in to Power BI service](media/embed-powerbi/embed-powerbi-report-in-system-form-auth-2.png "Sign in to Power BI service")
132153
133154
> [!div class="mx-imgBorder"]
134-
> ![](media/embed-powerbi/embed-powerbi-report-in-system-form-auth-3.png "Embed-powerbi-report-in-system-form-auth-3")
155+
> ![User that is signed in doesn't have appropriate permission](media/embed-powerbi/embed-powerbi-report-in-system-form-auth-3.png "User that is signed in doesn't have appropriate permission")
135156
136-
5. The view of the report data shown inside Power Apps is the same as that in Power BI, and Power Apps security roles and privileges don't affect the data that is displayed. Hence, the data is essentially the same as what the creator of the Power BI dataset would see. To apply data access restrictions similar to Power Apps security roles and teams, use [Row-level security (RLS) with Power BI](https://docs.microsoft.com/power-bi/service-admin-rls).
137-
6. If the form doesn’t show the Power BI report after importing the solution and publishing customizations, open it in the model-driven form editor and save it, so that the form JSON is regenerated.
157+
- The view of the report data shown inside Power Apps is the same as that in Power BI, and Power Apps security roles and privileges don't affect the data that is displayed. Hence, the data is essentially the same as what the creator of the Power BI dataset would see. To apply data access restrictions similar to Power Apps security roles and teams, use [Row-level security (RLS) with Power BI](https://docs.microsoft.com/power-bi/service-admin-rls).
158+
- If the form doesn’t show the Power BI report after importing the solution and publishing customizations, open it in the model-driven form editor and save it, so that the form JSON is regenerated.
138159

139160

140161
### See also

0 commit comments

Comments
 (0)