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 / Gallery in PowerApps -...
Power Apps
Unanswered

Gallery in PowerApps - Change item color based on value of item

(0) ShareShare
ReportReport
Posted on by 69

Hi There,

 

I would like to know how to change the color of a gallery item (cell) if the value within that item is "Complete and closed" - please see attached pic. I only want that gallery item cell to change color, I'm not sure if this is possible. If I cannot change the individual cell in the gallery, how would I change the fill color of a form that gets its value from the gallery e.g. 'Item' is 'Gallery.selected' if the value of a field in the gallery is "Complete and closed"?

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @snipesnab 

    Please have a look at the TemplateFill property for your Gallery.

    In that property you can set a formula such as this:

       If(ThisItem.Status = "Complete", Green, Transparent)

     

    This would set the row to green if the text Status column is set to Complete.

     

    I hope this is helpful for you.

  • snipesnab Profile Picture
    69 on at

    Spot on - thanks!

  • Sri Profile Picture
    559 on at

    Hi @RandyHayes ,

    In my case, I am working with powerapps dashboard which has a gallery. My Datasource is sharepoint. My gallery calculates the RAG Colour for all the fields and displays it (eg, Time, financial, efficiency are the labels and the respective fields have RAG colors(red, green, amber). Time category has two values to be compared(schedule & commitment). If prjmethod.text ="agile" commitment rag must be viewed in gallery or else schedule rag must be viewed in gallery. This prjmethod differs for every project. Is there any way to change the rag color based on the prjmethod condition.

    Any help would be greatly appreciated.

  • Chocolate_Pizza Profile Picture
    225 on at

    Hi Randy

     

    What would the syntax be if you are using a choice field?  I am having problems writing this one.  Thanks

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard