Create analytical reports by using Power BI Desktop
Dynamics 365 for Finance and Operations is now being licensed as Dynamics 365 Finance and Dynamics 365 Supply Chain Management. For more information about these licensing changes, see Dynamics 365 Licensing Update.
If you're a power user or a business analyst, you probably create many reports for your organization. You might create these reports in Microsoft Excel by formatting and relating data before you share it with other people. People in your organization might even come to you when they require modifications to the report. This solution offers an easy way to create rich, interactive reports. As a report writer, you can use Microsoft Power BI Desktop as the reporting tool. The reports that you create can then be published to PowerBI.com. For more information about Power BI Desktop, see Create stunning reports and visualizations with Power BI Desktop.
Accessing the local Entity Store by using DirectQuery
You can create Microsoft Power BI reports by using Open Data Protocol (OData) endpoints that are exposed via data entities. Despite the limitations of this approach, the Entity Store still supports it for legacy solutions. However, DirectQuery is now the preferred method for sourcing data for analytical solutions. For more information about the benefits and limitations of DirectQuery, see Use DirectQuery in Power BI Desktop.
When you use Power BI Desktop, you can create a report in your development or test environment by connecting directly to the local Entity Store database. When you're satisfied with the report, your administrator can help you migrate it to your production environment. The rest of this section walks you through this process.
To develop or extend analytical workspaces and reports in the application suite, customers must use a development environment running in their own subscription or on local machines. You won’t be able to develop or extend embedded analytical reports in Microsoft-provided, Tier-1 environments. You need administrator rights to install Power BI Desktop.
Step 1: Populate the local Entity Store database
For this example, we will stage the aggregate models that the Retail analytical solution consumes in the local Entity Store. The models that the Retail application uses are defined in the RetailCube aggregate measurement.
- In the client, open the Entity Store page. (Select System administration > Setup > Entity Store.)
- Select the RetailCube aggregate measurement, and then select Refresh.
- Enter a name for the job that will be run in the background, and then select OK.
The following illustration shows the administrator dialog box that is used to configure the frequency of updates for the aggregate model.
To monitor the progress of the job that stages the data, you can use the batch job monitoring page. (Select System administration > Database > Batch jobs.) If you're using demo data, the job should take about a minute. After the data is in the Entity Store, you can write reports.
Step 2: Connect to the local Entity Store database
Start Power BI Desktop. If any updates are available for Power BI Desktop, you might have to download and apply them.
On the Power BI Welcome page, select Get data.
Alternatively, when Power BI Desktop starts, you can select Get Data > SQL Server.
In the SQL Server Database dialog box, enter . as the server name and AxDW as the database name. Then select the DirectQuery option.
The following illustration shows the settings that enable Power BI Desktop to access the local Entity Store database.
The Import option isn't currently supported.
The Navigator dialog box appears. You use this dialog box to select which tables and views from the Entity Store you want to report on.
In the search box, enter Retail to filter for entities that are related to the RetailCube aggregate measurement.
Select the RetailCube_RetailTransDetailsView table that is shown in the navigator, and then select Load.
You can now create a report. You can drag measures and fields to the canvas, and can explore data and trends interactively.
The following illustration shows a basic report that uses the local Entity Store database as its source.
Power BI Desktop also supports the creation of calculations and lets you combine data from multiple aggregate measurements. Within minutes, you can create analytical reports by using data in the local development environment. When you're satisfied with the report, you can migrate it to the production environment, so that users can use the report to interact with production data.
Validating reports in a demo environment
The report shows the demo or test data in your developer environment. If you want to integrate the report into a demo environment, you can continue to publish this report to your PowerBI.com account and pin it to the client.