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 / Color Fill of gallery ...
Power Apps
Answered

Color Fill of gallery Icons

(0) ShareShare
ReportReport
Posted on by 338

Hello. Im trying to set color of an icon(Placed in a Gallery Template) to be different color based on a calculation that Im doing in the app itself(Its a small so the delegation warning is not bothering me). In short I have two SP list that Im showing in Gallery controls. First one is for Training Requests and the second one is for the employees that are  going to attend the training.

First Gallery that is listing the requested Trainings:

Help.PNG

Second Gallery Control where the employee details are added:

Help1.PNG

For the Total Participants in red Im using: 

CountIf(SPlist, RequestID = Subtitle7_2.Text)

And now my aim is to make the color of the check mark icon in the first gallery to be red/green based on the outcome of the above calculation. However placing this as color fill for the checkmark:

If(Value(Label9.Text) > 0, Green, Red)

icon it makes them all green/red based on the selected item and I want them to be different for each item based on whether there participants or no. Is there any way  to achieve this? Thank you in advance for the help.

 

Categories:
I have the same question (0)
  • Verified answer
    jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    If( CountIf(SPlist, RequestID = Subtitle7_2.Text) > 0, Green, Red) should do the trick.

  • SectorOMEGA Profile Picture
    338 on at

    You just made my day sir! Spent almost 2h to try and find a solution. THANK YOU SO MUCH!

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard