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 / Displaying choice fiel...
Power Apps
Answered

Displaying choice fields in a datatable as part of a collection

(0) ShareShare
ReportReport
Posted on by 11

I have a Sharepoint List with a choice field for Item status

I created a collection from the SP list called "MyCollection" and the choice field shows [order Order] when I display it in a Data Table

I need the collection so I can create a second collection and use AddColumns to format the dates correctly for Australia, but I don't know how to get the choice list options to display correctly.
I can't use a gallery as the real list I need this to work on has > 2000 items.

 

My Code on the Format button looks like this:

 

ClearCollect(MyCollection, 'Custom List');
ClearCollect(MyFormattedCollection,
AddColumns(MyCollection,
"CreatedAU", Text(Created, "[$-en-US]dd/mm/yyyy")
)
)

choiceformat.PNG

 

 

What do you need to do to fix the display of the Item Status column in the collection?

 

Categories:
I have the same question (0)
  • Verified answer
    aprildunnam Profile Picture
    704 on at

    I've ran into this same problem.  I addressed it by created another column to hold the value of your choice field.  So for example:

     

    ClearCollect(MyCollection, 'Custom List');
    ClearCollect(MyFormattedCollection,
    AddColumns(MyCollection,"ItemStatusFormatted",ItemStatus.Value,
    "CreatedAU", Text(Created, "[$-en-US]dd/mm/yyyy")
    )
    )

    The key is getting the column name and appending ".Value" to it to get the value of the choice column.

  • lvdp Profile Picture
    11 on at

    Thank-you so much - fixed my issue!  I was stuck on the syntax for adding choice list values.

     

    The only tip I'd give others is that you should generate your collection with the new columns and THEN add the data table based on the collection so you can select the newly generated columns for display!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard