web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Issue with a choice co...
Power Apps
Answered

Issue with a choice column to collection

(0) ShareShare
ReportReport
Posted on by 69

Hi Everyone,

 

I have a little problem pulling data from Dataverse table to collection: this Dataverse table includes a choice column but at the moment of ClearCollect the new collection it gives me all columns ' values except the choice field [This data type is unsupported for evaluation].

 

Could you please help.

 

Thank you.

I have the same question (1)
  • MichaelFP Profile Picture
    1,886 Moderator on at

    Can you share the code that are you doing? 

     

    Did you created the choices direct on the field or create the choice and linked with the field?

  • sbroud Profile Picture
    69 on at

    Yes, Here is the code: The status is the choice column that has 5 statuses.

     

    ClearCollect(Collection1,Filter(EventTable,  City="New York"));
    ClearCollect(colData, ShowColumns(Collection1, IDNumber, 'Event Date', 'Event Result', SpaceID, Status));
  • MichaelFP Profile Picture
    1,886 Moderator on at

    You mean that information?

    Michaelfp_1-1716594267930.png

    if is that case you can use the name logical name of the field  and you will be able to use in the gallery.

     

    I made this example with the case, but it works for any choice.

    Michaelfp_2-1716594362723.png


    I hope that this information has resolved your doubt. If it is marks as resolved 😎

     

  • sbroud Profile Picture
    69 on at

    Thank you for the help. I have issue collecting data into a collection. I understand that gallery or any other control will handle this type of data. But, if I want to create the collection , that gives the same result as your screen : This data type is unsupported .....

     

    My idea is to pass this data to collection then to JSON ==> Power automate for reporting.

     

    Thank you.

  • MichaelFP Profile Picture
    1,886 Moderator on at

    Did you try to convert to a JSON? I guess will convert with no problems don't?

  • sbroud Profile Picture
    69 on at

    Thank you Michaelfp,

     

    I've tried to create the JSON , but the data I got is not the same choices I already have [A, B, C]. I received the following result : (e.g. 62730001)

     

    Is there anyway to convert these numbers to choices : Thank you for your help

  • Verified answer
    MichaelFP Profile Picture
    1,886 Moderator on at

    Try the following:

     

    1- first create a collection with you choices

    ClearCollect(MyOptions,Choices('Status Reason (Cases)'));

     

    2- Create another collection to add your records but using AddColumns to include new column with the text value

    ClearCollect(MyCollection,
     AddColumns(Cases,'ChoiceColumn',
     Text(LookUp(MyOptions,'Status Reason' = Value).Value)
     )
    );

     

    Check if this works for you.

     

    If this information help please give me a kudo. If solve you problem please mark as solution. This is help the community.

     

    Kind Regards.

  • sbroud Profile Picture
    69 on at

    Thank you @Michaelfp  😁

     

    Amazing Results. It gives me what expected. 

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 273

#3
Kalathiya Profile Picture

Kalathiya 232 Super User 2026 Season 1

Last 30 days Overall leaderboard