You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/maker/common-data-service/data-platform-powerbi-connector.md
+38-40Lines changed: 38 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,84 +1,82 @@
1
1
---
2
-
title: Create a PowerBI report | Microsoft Docs
3
-
description: Connecting to your data from PowerBI Desktop using the Common Data Service connector.
4
-
author: lancedMicrosoft
5
-
manager: kfile
2
+
title: Create a PowerBI report using the Common Data Service connector | Microsoft Docs
3
+
description: Connecting to your data from Power BI Desktop using the Common Data Service connector.
4
+
author: Mattp123
5
+
manager: kvivek
6
6
ms.service: powerapps
7
7
ms.component: cds
8
8
ms.topic: conceptual
9
-
ms.date: 05/21/2018
10
-
ms.author: lanced
9
+
ms.date: 05/26/2020
10
+
ms.author: matp
11
11
search.audienceType:
12
12
- maker
13
13
search.app:
14
14
- PowerApps
15
15
- D365CE
16
16
---
17
-
# Create a Power BI report
18
-
Common Data Service allows you to connect directly to your data using Power BI Desktop to create reports and publish them to Power BI. From Power BI, reports can be used in dashboards, shared to other users and accessed cross platform on Power BI mobile apps.
17
+
# Create a Power BI report using the Common Data Service connector
18
+
Common Data Service allows you to connect directly to your data using Power BI Desktop to create reports and publish them to Power BI. From Power BI, reports can be used in dashboards, shared to other users, and accessed cross platform on Power BI mobile apps.
19
19
20
20

21
21
22
22
## Prerequisites
23
23
24
-
To use Power BI with the Common Data Service, you need the following:
24
+
To use Power BI with Common Data Service, you need the following items:
25
25
26
26
* Download and install Power BI Desktop, which is a free application that runs on your local computer. You can download Power BI desktop [here](https://powerbi.microsoft.com/desktop/).
27
27
* Common Data Service environment with maker permissions to access the portal and read permissions to access data within entities.
28
28
29
29
## Finding your Common Data Service Environment URL
30
30
31
-
1. Open [Power Apps](https://make.powerapps.com/?utm_source=padocs&utm_medium=linkinadoc&utm_campaign=referralsfromdoc) and select the environment you're going to connect to and click the **settings gear** in the topright corner, and click **Advanced customizations**
31
+
1. Open [Power Apps](https://make.powerapps.com/?utm_source=padocs&utm_medium=linkinadoc&utm_campaign=referralsfromdoc), select the environment you're going to connect to, select **Settings** in the top-right corner, and then select **Advanced settings**.
32
32
33
-

33
+
<!-- -->
34
34
35
-
2. Click **Resources** under the Developer resources section which will open a new tab.
36
-
37
-

38
-
39
-
3. Copy the root of the URL in the new tab, this is the unique URL for your environment. The URL will be in the format of **https://yourenvironmentid.crm.dynamics.com/** make sure not to copy the rest of the URL. Keep this somewhere handy so you can use it when creating your PowerBI report.
35
+
2. In the new browser tab that opens, copy the root of the URL. This is the unique URL for your environment. The URL will be in the format of **https://yourenvironmentid.crm.dynamics.com/**. Make sure not to copy the rest of the URL. Keep this somewhere handy so you can use it when creating your Power BI reports.
40
36
41
37
> [!div class="mx-imgBorder"]
42
-
> 
38
+
> 
43
39
44
40
## Connecting to Common Data Service from Power BI Desktop
45
41
46
-
1.Launch**Power BI Desktop**, if it's your first time you may be prompted with a Welcome screen or taken straight to a blank canvas - either way, click **Get Data** and select **More** to open the full list of data sources available for Power BI Desktop.
42
+
1.Open**Power BI Desktop**. Select **File** > **Get Data** and then select **Get data to get started** to open the full list of data sources available for Power BI Desktop.
47
43
48
-

44
+
<!-- -->
49
45
50
-
2.Click **Online Services** and **Common Data Service (Beta)** from the list of connectors. Click**Connect**.
46
+
2.Type *common* in the **Search** box, select **Common Data Service**, and then select**Connect**.
51
47
52
-

48
+
> [!div class="mx-imgBorder"]
49
+
> 
53
50
54
-
3.Paste in your **Common Data Service Environment URL** into the **Server URL**field and click**Ok**. If this is your first time, you'll be prompted to log in using the same credentials you use to connect to Power Apps and Common Data Service.
51
+
3.In the **Common Data Service** dialog box that appears, paste in your Common Data Service environment URL into the **Server Url**box and select**OK**. You might be prompted to sign in using the same credentials you use to connect to Power Apps and Common Data Service. Select **Connect**.
55
52
56
-

53
+
<!-- -->
57
54
58
-
4. The Navigator will show you all entities available for your environment grouped into three folders. Expand the **Common Data Model** folder.
55
+
4. The **Navigator** displays all entities available for your environment grouped into two folders.
59
56
60
-
* Common Data Model - these are standard entities which are commonly used and available in all environments as part of the Common Data Model.
61
-
* Custom Entities - are entities that you have created or imported in your environment.
62
-
* System - contains all entities in your environment, including the Common Data Model and Custom entities.
57
+
* Entities - are standard entities and custom entities that you have created or imported in your environment.
58
+
* System - contains all entities in your environment, including system entities.
63
59
64
-

60
+
<!-- -->
65
61
66
-
5. Select the **Account** entity to see a preview of your data in the right pane, and click**Load**.
62
+
5. Select the **Account** entity to see a preview of your data in the right pane. Select**Load**.
67
63
68
-

6. Your entity is now loaded into your report, and you can begin building reports, or repeat this process to add additional entities.
67
+
6. Your entity is now loaded into your report, and you can begin building reports, or repeat the previous steps to add additional entities.
71
68
72
-

69
+
<!-- -->
73
70
74
-
7.Click the **Name**field in Field panel to add a new visualization to your report canvas. You can now repeat this process and change visualizations to build your report.
71
+
7.In the **Fields**pane, select the **name** field and then select the **numberofemployees** field. In the **Visualizations** pane, select **Pie chart**. This adds a new visualization to your report canvas.
75
72
76
-

73
+
> [!div class="mx-imgBorder"]
74
+
> 
77
75
78
76
79
-
## Using Option sets
77
+
## Using option sets
80
78
81
-
Options sets are used in entities to provide a dropdown list of values to a user in apps and flows. When using the Power BI connector option set fields will be presented as two columns to show both the unique value, and the display value.
79
+
Options sets are used in entities to provide a drop-down list of values to a user in apps and flows. When using the Power BI connector option set fields will be presented as two columns to show both the unique value, and the display value.
82
80
83
81
As an example, if you had an option set on your entity called ApprovalStatus, you would see two fields in Power BI:
84
82
@@ -94,13 +92,13 @@ As an example, if you had an option set on your entity called ApprovalStatus, yo
94
92
95
93
## Navigating Relationships
96
94
97
-
Relationships in Common Data Service require you to create a relationship within PowerBI desktop between the two entities using a GUID field, this is a systemgenerated unique identifier that ensures relationships are created for the create records where ambiguity or duplication may exist with other fields. You can read more about managing relationships in Power BI desktop [here](https://docs.microsoft.com/power-bi/desktop-create-and-manage-relationships).
95
+
Relationships in Common Data Service require you to create a relationship within Power BI desktop between the two entities using a GUID field, this is a system-generated unique identifier that ensures relationships are created for the create records where ambiguity or duplication may exist with other fields. You can read more about managing relationships in Power BI desktop [here](https://docs.microsoft.com/power-bi/desktop-create-and-manage-relationships).
98
96
99
-
While some relationships may be automatically created, you can still review and ensure the correct relationships are established when creating your report:
97
+
While some relationships may be automatically created, you can still review and ensure the correct relationships are established when creating your report:
100
98
101
99
* The lookup field on the entity will contain the GUID of the record in the related entity.
102
-
* The related entity will have a field in the format "[EntityName]id" which contains the GUID, for example Accountid or MyCustomEntityid
103
-
* Using the PowerBI desktop Manage Relationships feature, you would create a new relationship between your lookup field, and the id field on the related entity.
100
+
* The related entity will have a field in the format "[EntityName]ID" that contains the GUID, for example Accountid or MyCustomEntityid
101
+
* Using the Power BI desktop Manage Relationships feature, you would create a new relationship between your lookup field, and the id field on the related entity.
0 commit comments