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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Get choice column valu...
Power Apps
Suggested Answer

Get choice column value (not label)

(0) ShareShare
ReportReport
Posted on by 19
Hi,

I am new to power apps and I am trying to solve a few issues.
I have a dataverse table with a choice column. For each value of the choice column we assign a label. Is there a way so that in power apps I can get the value of the choice (not the label) and compare it. In the dataverse table in a formula column if I call the choice column I automatically get the value. However, in power apps I do not see the option to get the value.

Any help on that would be much appreciated.
I have the same question (0)
  • Suggested answer
    Gabriel G. Profile Picture
    831 Super User 2025 Season 2 on at
    Hi!
     
    You can use JSON to get the option value:
     
    JSON(yourOptionset)
    As an example of mine:
     
    JSON(First(Choices(Reservation.Status)).Value)
    First(Choices(Reservation.Status)).Value
     
     
    I hope it helps!
    _________________________________________________________
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
     
  • MS.Ragavendar Profile Picture
    4,983 Super User 2025 Season 2 on at
    Hi,
     
    A choice column in Dataverse treated as Record since it has two parts:
    • Label: The user-friendly text displayed in the app.
    • Value: The underlying numeric or string value associated with the label.
    so you must explicitly reference .Value.
     
    If your choice column is called Status, you can get its Value like this - ThisItem.Status.Value
     
    If you want to filter records where Status.Value = 2, you would use Filter('Dataverse Table', Status.Value = 2)
     
    Hope this helps. Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item.
     
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard