Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
FN
Regular Visitor

PowerBI and Dynamics 365 Integration

Hello community,

 

in our company recently we switched from an old CRM to Dynamics 365.

Now I am setting up all kinds of reports for all different departments in PowerBI Desktop with all the data coming from the Dynamics 365. With the new CRM, when I get data from the dynamics 365, it is no longer "real data" but lots of codes.

One Example:
When I got data for an opportunity status, the old CRM got me e.g. the Column statecode and then the different entries in there where "Open", "Disqualified" and "Qualified".

Now with the Dynamics 365, the Column statecode only has codes in it. Here for example in the column statecode I can find the values 0, 1 and 2. Now if I want to report something for the statecode, I first have to get in touch with the corporate applications department to find out what these values 0,1 and 2 really mean. And once they send me what this really means (0 = Open, 1 = Disqualified, 2 = Qualified), I am not finished.

Now what I have to do to make reports senseful is to use the function "Replace values" to set all 0s in this column to Open etc. But if I have to do that for 100+ columns and probably 1000+ values, it is really annoying and also it looks like this is also decreasing the performance of PowerBI desktop.

Is there a different opportunity to deal with this problem?

 

Thank you in advance!

2 REPLIES 2
seabrew
Helper II
Helper II

Our environments are not apples to apples, but still relevent to your question. 

 

We have a (non-MS) vendor hosted Dynamics CRM 2017 solution and an on-prem SQL Server data warehouse. To integrate our warehouse with Dynamics, we use Scribe Online Replication Services. This syncs CRM entities data onto an on-prem SQL database and allows us to get the CRM schema and underlying data. I use this then to write SQL queries that are then consumed by our data model in Power BI. I think the price of Scribe Online is about $100 a month. 

 

All of the CRM code/lookup values fields have a hidden field that you can query. In the scribe replication services world it is fieldname_displayname. For example in the screenshot, I am querying the oppurtunties entities and showing the original "code" field and then underlying string value of the code. 

 

Having the CRM data in SQL that you can get to is really powerful. Hope this helps you!

Scribe Online RS example.PNG

v-qiuyu-msft
Community Support
Community Support

Hi @FN,

 

Based on my research, the Dynamics 365 store entities state code in numbers rather than actual meaningful word. You can see: Default status and status reason values. So you have to convert numbers to meaningful words after you retrieved data in Power BI desktop by yourself.

 

You can double confirm it from Dynamics CRM forum here.

 

Best Regards,
Qiuyun Yu 

 

 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.