How to Pull Data from Microsoft Dynamics 365 into Power BI Reports
I am in a unique scenario, as I am both a Microsoft Partner that sells and services Dynamics products, and also a customer that uses Microsoft Dynamics business solutions to run our practice. When Microsoft released Project Service Automation (PSA) as part of the Dynamics 365 suite, I jumped right in to deploy it for our internal scheduling tool. I'm happy to say we got that up and running and it's paying big dividends for us already.
Now that I have a centralized scheduling tool across all of our delivery teams, I'm taking steps to incorporate that very valuable data into the existing reports and scorecards we are using to manage the business today, using Power BI. In this post, I'll share how to pull Microsoft Dynamics 365 Data into your Power BI Reports. Specifically, I want to share two simple but valuable tips I learned in the first couple of hours of working on this.
- Hooking up PSA to Power BI via the Web API
- Using Power BI as a tool to investigate the PSA data structure
First, to pull the data into Power BI, open the Power BI Desktop > Get Data > More…
Select Online Services > Dynamics 365 (online)
You will be prompted for the Web API URL
To find the correct URL for your instance, log into Dynamics 365 > Settings > Customizations > Developer Resources
Copy and paste that back into the Power BI prompt and click OK. It will take a few minutes, and eventually the Navigator will populate with a list of data tables you now have access to from within Power BI. The navigator also provides a preview of that data, which assists with quickly identifying potential data sources for the report you are building:
In my scenario, I was able to quickly identify a few tables that I knew contained the data I needed. There were, of course, some data elements that I could not easily identify since I am not familiar with the data structure. So, I opted to select every table that was named in a way that I thought might be useful, and Loaded them in:
This operation takes a bit, so now's a good time to get a cup of coffee:
Once completed, the tables are now usable from within Power BI. In my case, I wanted to do some investigation on the tables, and I found that Power BI creates a nice relationship map of all of the tables that I loaded in, which was extremely helpful for me in identifying which tables had what I needed, and how to connect the dots when I need to do lookups or make other joins. Here's a screenshot of that visual tool:
The tables themselves can be moved around so that you can organize and dig deeper into the relationships. If you click on a connection line, it highlights the fields that join the two tables:
I've now started using Power BI just for this metadata analysis tool for other reporting areas that I've been pondering out of our Dynamics 365 for sales (CRM) system. I hope you find it useful as well.
If you're interested in learning more or want Power BI training for your team, check out our two-day Power BI Workshop, which can be customized for your company.