Skip to main content

Notifications

Announcements

No record found.

Use Color Codes from Option Sets in both Dynamics 365 charts and Power BI

Option Sets in Dynamics 365 has a setting for each value to specify a color code. This color code is used in the new Unified Interface in the entity specific dashboards. This is a welcome addition as it makes it more easy to persist colors to a specific value and have it be consistent throughout the charts and visuals.

option set color code to UI entitiy dashboard

With the August 2018 release of the Power BI Desktop client, we can now also do conditional formatting based on a field with a color code in Power BI reports.

power bi option set color value

Since we can query option sets directly, and get the color code into the Power BI dataset, we can now use the same color scheme more easily between the two solutions. As the option sets are queried, any updates to values, labels, and color codes in the option set, will automatically update on the Power BI side as well.

For querying the Dynamics 365 option set into Power BI, I use the Power Query (M) Builder tool for the XrmToolBox.

Comments

*This post is locked for comments