Can Power BI access Dynamics CRM saved queries such as System-Defined Views or User Queries?
(If so, how? I don't see them in the Navigator popup when I connect to CRM source)
Power BI can't do this at the moment. When connecting to Dynamics I use an odata connection, you can apply filters in the odata url that you could replicate an advanced find with.
I'm actually more interested in "Public Views" which can include linked entities...
I've just tried Power BI: Get Data > Other > OData Feed;
My custom entity fields are of Data Type 'Option Sets', and they don't seem to come down into PowerBI.
I see Odata supports the $expand option - do I need to use that just for Option Sets?
Some of the nice things about Views are
- users can set them up in CRM
- uses the 'Display Name" of fields
- Linked Entities
@dennisr Another thing to look into depending how in-depth you are getting on reporting for your CRM solution is the new solution templates. Release notes here. This appears to offer up the ability to gain a huge shortcut to implementing a full solution. I wouldn't know, because I just finished implementing our CRM in Power BI solution a week before they released this. 😞 Tears were shed.
@Tom - RE: "Power Query will give you the expand option "
Would you please clarify that? I'm in PowerBI Desktop, and the Fields listed do not include any fields defined as Option Sets
@Seth_C_Bauer Most of my entities are custom, so I don't think Solution Templates will help me
When you select a field that is an option set or a lookup value through oData through Power Query it should atomatically give you the option to get the values (if it's an option set) or the lables if it's a lookup value.
I have a simple odata url that pulls StatusCode from Opportunity:
When that appears in the Query Editor you get the option to expand the record:
into the option set values:
OK, I found the 'Expand'. However, it's a pain to have to expand dozens of fields. It seems that doing an expand has Power BI desktop make a metadata query back to Dynamics, which takes a long time - 40-50 seconds per field (!), since they need to be done one at a time. Clearly, there needs to be a setting in Power BI that automatically does the expand and selects the Value or Label, and/or the ability to expand multiple fields at the same time.
(Note, that whe you use FetchXml with the SDK, it does automatically get the underlying value/label. )
I'd also love the ability to connect to existing advanced finds and agree that it would be useful for us as well. Might be worth adding it as a suggestion! 🙂
In terms of option sets, select them in the oData query in the normal fashion and Power Query will give you the expand option to get the value that you then might want to map to labels.
The $expand in oData is used for getting data from related entities.
For instance I have a query that points to the out of the box Incidents entity but then goes off to Account and Contact to collect data from the related records, then apply a filter for the creation date:
$expand=incident_customer_accounts,incident_customer_contacts&$filter=CreatedOn ge datetime'2014-01-01T00:00:00'
Personally I use a solution that is avaliable on the XRM tools codeplex that is a massive help, it generates the URL for you and I've only ever had to do minor tweaking, it also will work with your custom entities and attributes.
I don't know the rules on posting links but a quick google search for dynamics CRM odata query designer will point you to the XRM tools codeplex.
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!
130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.