Analyze Common Data Service data in Azure Data Lake Storage Gen2 with Power BI
After exporting data from Common Data Service to Azure Data Lake Storage Gen2 with the Export to Data Lake service, you can use Power BI to create business reports and analytics. This can be useful for sales managers and sales associates to refine and build additional reports and dashboards in Power BI.
This article shows you how to perform the following tasks:
Connect the Data Lake Storage Gen2 storage container containing the exported Common Data Service data to Power BI.
Create a report in Power BI that graphs account owners and their respective total account revenue.
This section describes the prerequisites necessary to consume Common Data Service data with Power BI by using the Export to Data Lake service.
Power BI Desktop. Get it now
Export to data lake: This guide assumes that you have already exported data from Common Data Service by using the Export to Data Lake service. In this example, account entity data is exported to the data lake and will generate a report by using the account entity fields.
Connect the Data Lake Storage Gen2 storage to Power BI Desktop
Open Power BI Desktop, and sign in.
Select Get data > More.
On the Get Data page, select Azure > Azure Data Lake Storage Gen2 > Connect.
Enter the storage container name in the format
https://accountname.dfs.core.windows.net/containername/ and replace accountname and containername with your storage account's information.
Find the storage account name by going to Azure > Storage accounts, and then select the Data Lake Storage Gen2 account that's populated with the exported Common Data Service data.
Find the container name by going to Storage Explorer (preview) > Containers and select the name of the container with the exported Common Data Service data.
Select CDM Folder View (Beta), and then select OK.
If prompted to sign in, you can sign in with your Azure Active Directory account or with the Account key. To sign in with an Account key, select the option from the left side bar.
Find the account key by going back to the storage account settings and selecting Access keys from the left pane. Copy the first key and paste it in Power BI. Select OK.
After successfully connecting to your storage account, expand the cdm directory and select the entities that you want to analyze. Then, select Load.
Create a Power BI report with account revenue by account owner
Under the Visualizations menu, select Pie Chart.
On the Fields menu, search for and select the fields ownerid and revenue. The fields will appear on the Visualizations menu under Legend and Values, respectively.
A pie chart appears that separates each account owner by color and displays the total revenue of accounts.