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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Lexicaltje
Regular Visitor

Dataverse Connector and Choice Columns

Hello all,

 

I've used Power BI to create reports from Sharepoint with no issues. I've now started to use Dataverse to power my apps and i want to start creating Power BI reports from that data.

 

Yesterday i tried both the Import and Directqiery functions for the Dataverse Connector and in both cases, my choice columns are not coming in correctly. 

 

As im sure you all know, choice columns come in as the choice ID number and the name, in 2 separate columns. However, my choice columns come in as 2 columns, the first with the ID number intact, but the in the name column the data is all "Null". Infact for one of my columns, the choice column only comes in as an ID number and doesnt even have a name column. 

 

Whats going on? I cant really build reports with the choices just being a set of numbers... Its a real pain. Does anyone have a fix for this?

2 REPLIES 2
mahoneypat
Microsoft Employee
Microsoft Employee

It is harder than it should be.  One way to do it is to make a separate query using the OData connector (Organization Account authentication) with the string below, updating the text in red with your values for your environment URL and choice column name (dummy values shown as examples).  From there you can drill into the Options table and the nested records in there.  You can then merge the label into your original query with the option value.

 

https://org12345.crm.dynamics.com/api/data/v9.0/GlobalOptionSetDefinitions(Name='xyz16_ChoiceColumn')

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Thank you, was just about to make a new post for this

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! Early Bird pricing ends December 9th.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.