cancel
Showing results for 
Search instead for 
Did you mean: 
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
Microsoft

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
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power BI Dev Camp Session 27

Ted's Dev Camp

This session walks through creating a new Azure AD B2C tenant and configuring it with user flows and custom policies.

Top Solution Authors