HI,
I'm trying to create a desk booking app for my team.
I've used rectangles to symbolise the desks in the office, and a gallery (taking information from a SharePoint list) to enable users to book.
A user would click the "+" symbol, which simply updates the "Assigned to" text field from "Available" to their username.
Now, I would like the rectangles to be green if they're available, and red if the have been booked (grey ones are unavailable due to social distancing..)
Below is as far as I've gotten. However it check the data in the top row of the gallery. Is there a way I can link the desk number from the rectangle to the gallery?

Any help would be fantastic!!
Thank you,
George, UK.