Book Image

Building Dynamics CRM 2015 Dashboards with Power BI

By : Steve Ivie
Book Image

Building Dynamics CRM 2015 Dashboards with Power BI

By: Steve Ivie

Overview of this book

<p>Dynamics CRM 2015 holds a wealth of information about customers and the sales pipeline, but sometimes leaves users with basic end-user reporting and dashboard options. Power BI is a great new tool for analyzing and presenting data, giving us the ability to dig deeper into the information. With the increased requests for real-time sales analytics, Power BI when connected to Dynamics CRM offers a self-service approach to build, shape, and present data through an easy-to-use interface. The set of features within Power BI will give all users a tool to generate real-time sales productivity reports and dashboards to enhance their sales performance.</p> <p>This book will provide you with the skills you need to learn how to build and present Dynamics CRM 2015 sales dashboards using Power BI. It follows a step-by-step process to build an interactive dashboard by organizing and consolidating datasets, improving the look and feel of graphs, charts, and maps, and enhancing data clarity with filters and slicers.</p> <p>By sequentially working through the steps in each chapter, you will learn how to use the Power BI Q/A functionality to query data in the dashboard, extend the dashboards to the mobile apps for the iPad and Surface, and leverage the pre-built workbook template provided by Microsoft for Dynamic CRM 2015 sales, service, and marketing dashboards.</p>
Table of Contents (18 chapters)
Building Dynamics CRM 2015 Dashboards with Power BI
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Connecting to Dynamics CRM


You just learned how to set up and configure Power BI sites and the Power BI Designer. Now you will learn how to connect the Power BI Designer to the Dynamics CRM Online instance and put data entities into Power BI.

For our sales productivity dashboard, we will use the following Dynamics CRM entities:

  • Users

  • Leads

  • Accounts

  • Opportunities

Checking requirements

Before we connect to Dynamic CRM with the Power BI Designer, let's quickly review the general requirements:

  1. A user must specify a valid OData URL for a Dynamics CRM Online instance. The connector will not work with an on-premise CRM version.

  2. Enable the OData endpoint in the site settings with Dynamics CRM. Then, select Settings | Customizations | Developer Resources. The OData URL is listed under Service Endpoints.

  3. The user account that you use to access Dynamics CRM Online must be the same as the one you will use for Power BI.

Accessing data

Earlier, we downloaded and installed the Power BI Designer, which allows read-only access to the Dynamics CRM Online instance in order to make it easy for users to get the sales data they want.

To see how easy it is to access data:

  1. Open Power BI Designer and select Query from the bottom-left corner of the Power BI Designer window.

  2. In the top-left corner of the Power BI Designer window, select Get Data.

  3. In the Get Data Window, select All | Dynamics CRM Online to access the Dynamics CRM Online OData Feed window:

  4. Once the Microsoft Dynamics CRM Online window opens, enter the Dynamics CRM Online OData (REST) URL previously captured during setup:

The Access Dynamics CRM Online OData Feed window may or may not appear to log in to the Dynamics CRM Online instance. If the window does appear, use Organizational account to sign in. For this book, we will select the first URL to connect the OData feed. If the Access Dynamics CRM Online Odata Feed window does not appear, you are already connected and authenticated to the Dynamic CRM instance:

Loading data

Once you have successfully connected to your Dynamics CRM organization, the Query functionality of the Power BI Designer runs against the Dynamics CRM Online instance, and the navigator window returns a list of Dynamics CRM data entities to include in your dashboard.

By default, when you load the data to Power BI, all the items will be selected in the navigator window. To individually select multiple items, you will have to check the box to select multiple items.

Here's how you do it:

  1. Navigate to the top-left corner of the navigator screen and locate the checkbox labeled Select Multiple items.

  2. Once this checkbox is ticked, the subarea will include additional checkboxes to individually select the Dynamics CRM data entities.

  3. Select the following items from the navigator window:

    • AccountSet

    • LeadSet

    • OpportunitySet

    • SystemUserSet

  4. The right-hand side of the navigator window will show you a preview of the fields included and data currently in the dataset.

  5. Select Show Selected to see a queried list of just the dataset selected:

Querying the data

Our next step is to query the Dynamics CRM data that we will load to Power BI. We can do this by editing the query before we load the data or come back later and update the query. By querying only the data we need from Dynamics CRM before loading to Power BI, we can enhance the performance of our reports and dashboards.

Here is how it is done:

  1. Select Edit Query from the bottom-right hand side of the window; a view of the entity data is presented in Query view:

    A view of the entity data

  2. To modify the query after you load the data, in the top ribbon select View | Show | Query Settings to access the Query Settings pane.

  3. Select Source in the Query Settings window to update the query entity data:

  4. In the left-hand side pane, queries are listed and available for selection, viewing, and shaping. In the main pane, data from the selected query is displayed and available for shaping.