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:

Second Gallery Control where the employee details are added:

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.