Forum Discussion

mobul's avatar
mobul
Frequent Visitor
1 year ago
Solved

Dataverse for Teams Choice Columns - Customizations published but column not showing

I have a dataverse table and added a choice column over a week ago. When I import the table into PowerBI /PowerQuery I can see the numeric choices but not the text value column. I have read this arti...
  • mobul's avatar
    mobul
    1 year ago

    Hi Anonymous Your proposed solution is helpful but some points as they relate to my experience using powerbi desktop May 2024 version, against a powerBI server (not service) and dataverse for teams as they might be useful to others. 

     

    1. Within powerquery in PowerBI there is no option to expand the multi choice column. It is a column within an existing table not a table within the it and there is no obvious extra table that i could identify as containing the choice labels 
    2. The choice & multi-choice column values in Dataverse take the form of 3 sets of 3 digits separated by a comma e.g. ddd,ddd,ddd .The right most digit increments with the addition of each new choice. 
      1. However within PowerQuery each selected value is returned as 9 digit numbers separated by a commas between choices e.g. dddddddd,dddddddd. Its something to be aware of if creating a custom lookup table and need to split the column by delimiter. 

     

    I created a new query that imported just the GUID (primary key) of the row and the choice column. I removed the 6 digits that (I presume wont change) and carried out a series of replace values to change the values to their correct labels. That left me with a comma separated string for each row. I split that column by delimiter comma to get a series of columns with the text choice for each selected row. I then unpivoted the primary key so i had a key value for each key and the text choice.

     

    Don't forget to publish all customisations if you add a new choice to the dataverse column