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 / Retrieve option choice...
Power Apps
Unanswered

Retrieve option choice value in PowerApps gallery from dataverse

(0) ShareShare
ReportReport
Posted on by 43

I have a number of dataverse tables with child/parent relationships. I want to use a rgb value from a choice column to colour each gallery item by its RAG status. My problem is I can't figure out how to retrieve the rgb value.

 

ThisItem.'RAG-Status'.'Rag-Status'

The function gets me the Label but how do i retrieve the value element from within a powerApp?

 
Forgive the poor naming but
  • Table Name => RAG Status
  • choice column => Rag-Status (Name cr8d1_ragstatus)
  • External type name is blank
Categories:
I have the same question (0)
  • Sunil Kumar Pashikanti Profile Picture
    2,338 Super User 2026 Season 2 on at

    Hi,

     

    You have to use the Value to retrieve the information from choice field as shown below:

     

    ThisItem.'RAG-Status'.Value

  • mobcdi Profile Picture
    43 on at

    There isn't a .Value listed in autocomplete and the formula reports incorrect use of "." Maybe the structure of my data wasn't as clear as necessary.

     

    ThisItem Table

    ItemIDNameDescriptionRAG-Status (lookup)

     

    RAG Status Table (source of lookup)

    NameRag-Status (*)Description

     

    * this is the choice column I wish to retrieve the Value (rgb values) it is configured to sync with global choice (StatusColour), schema name cr8d1_RagStatus, logical name cr8d1_ragstatus

     

    ThisItem.'RAG-Status'.'Rag-Status' returns the label
    How do I get the Value of a choice?

  • Sunil Kumar Pashikanti Profile Picture
    2,338 Super User 2026 Season 2 on at

    ThisItem.'RAG-Status'.'Rag-Status' returns the label - can you give the screen shot, what label it is giving?

  • Sunil Kumar Pashikanti Profile Picture
    2,338 Super User 2026 Season 2 on at

    Hi @mobcdi ,

     

    If you are looking to fetch/get a value from a choice field, please use the below formula:

     

    ChoiceField.Selected.Value => it gives the value of the selected item. (make sure to update the ChoiceField with your choice field name)

  • mobcdi Profile Picture
    43 on at

    Sorry for the delay in responding.

     

    The value of ThisItem.'RAG-Status'.'Rag-Status' returns a string made up of numbers and letters in blocks, after a bit of digging i can see that the Rag-status isn't the column i actually need as its the GUID for the row.


    I am still having trouble getting to the colour value from a choice column. I now know the column name is Status Choice but if I use 
    ThisItem.'RAG-Status'.'Status Choice' I get one of the labels below but I need to get the Value which contains the RGB value as can be seen in the image below. 

     

    In the formula bar I don't have the option of ThisItem.'RAG-Status'.'Status Choice'.Value as the formula error says "Value" isn't recognised and there are no suggestions presented by code complete

     

    status choice label.png

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 416 Most Valuable Professional

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard