Hi @PatrykPlaska Your code for Fill property of square which is in gallery will be this:
Switch(ThisItem.Status,
"No accidents",
Color.Green,
"Near misses",
Color.Blue,
"Non LTI",
Color.Yellow,
"LTI",
Color.Red,
"Day Off",
Color.Black)
For the square which is not in gallery and depending upon the selection in gallery, the Fill property will be
Switch(Gallery.Selected.Status,
"No accidents",
Color.Green,
"Near misses",
Color.Blue,
"Non LTI",
Color.Yellow,
"LTI",
Color.Red,
"Day Off",
Color.Black)
-----------------------------------------------------------------------------------------------------------------------------
I 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. If the content was useful in other ways, please consider giving it Thumbs up.👍
Thanks,
ANB