Forum Discussion

VoltesDev's avatar
VoltesDev
Helper V
4 years ago
Solved

Data from Dataverse Choice column

Hi guys,   Need some clarification. I'm using Dataverse as my datasource, when my table have a Choice column like below: And this collumn/fields accept multiple value, so the data will be li...
  • MFelix's avatar
    MFelix
    4 years ago

    Hi  , 

    On this post I have found an answer some time ago

    https://community.powerbi.com/t5/Desktop/Can-t-see-the-display-value-of-a-choice-column-from-a-table-in/td-p/1652535

     

     

    So you have some older choice fields which are working correctly, but newly created ones don't?

     

     

    The answer is this one:

    This is a by-design scenario as Dataverse store Choice type value in numeric. As a workaround, mapping relationship between on choice type value can be exported via another API call, please try using Power BI Web connector and access source link via below:

    https://<environmentName>/api/data/v9.2/EntityDefinitions(LogicalName='<TableName>')/Attributes(LogicalName='<Choice Name>')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?$select=LogicalName&$expand=GlobalOptionSet($select=Options)

    where environment name = org12345678..api.crm6.dynamics.com

    Essentially adding another table with the value/name pairing and  joining to the original table.   I have about 12 choices so far in my database, so this is painful. 

    VoltesDev