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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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