Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Color an icon in red if the desktop is already reserved

(0) ShareShare
ReportReport
Posted on by 691

Hello, I am creating a Flex Office application to allow users to book offices. When the user chooses a date on the first screen, he can then click on a desk on the second screen to reserve it.
Once done, the SharePoint list will populate with each user's reservations.

 

Screen 1 :

s44_0-1662471338731.png

 

 

Screen 2 :

s44_1-1662471374615.png

 

 

SharePoint List :

s44_3-1662471706279.png

 

"Name" column: Type People Picker (Indicates the name of the person who booked the room)
"Date" column: Type Date (Indicates the date of the reservation, chosen on the calendar screen on power apps)
"Number_Office" column: Number type (Indicates the office number reserved by the user)

 

 

What I would like to do :

 

I would like that if, for example, office number 1 is already reserved by someone, then the blue dot corresponding to office number 1 on screen 2 is red. But I don't know how to do that. Could you help me please? Thanks in advance ! 😄

 

  • s44 Profile Picture
    691 on at
    Re: Color an icon in red if the desktop is already reserved

    It's work thank you !! 

  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at
    Re: Color an icon in red if the desktop is already reserved

    Use IsEmpty() instead of IsBlank(). 

  • Verified answer
    Akser Profile Picture
    1,546 Super User 2025 Season 1 on at
    Re: Color an icon in red if the desktop is already reserved

    Try this: 

     

    If(IsBlank(LookUp(Reservation, Date = Calendar_1.StartDate && Numbero_Bureau = 2)), Blue, Red)

     

  • s44 Profile Picture
    691 on at
    Re: Color an icon in red if the desktop is already reserved

    Thanks ! However, there is a problem. Here, the dot corresponding to office number 2 is red while in my SharePoint list there is no reservation of this office to date. @Akser 

    s44_0-1662476724704.png

     

    s44_1-1662476838736.png

     

     

  • Akser Profile Picture
    1,546 Super User 2025 Season 1 on at
    Re: Color an icon in red if the desktop is already reserved

    The date is supposed to be the selected date from the calendar on your Screen1. I'm assuming you know how to find out which date was selected?

     

    Calendar_1.StartDate

  • s44 Profile Picture
    691 on at
    Re: Color an icon in red if the desktop is already reserved

    I have this error : @Akser 

    s44_0-1662475743668.png

     

  • s44 Profile Picture
    691 on at
    Re: Color an icon in red if the desktop is already reserved

    .

  • s44 Profile Picture
    691 on at
    Re: Color an icon in red if the desktop is already reserved

    Property "Fill" ? @Akser 

  • Akser Profile Picture
    1,546 Super User 2025 Season 1 on at
    Re: Color an icon in red if the desktop is already reserved

    The circle's color property I assume?

  • s44 Profile Picture
    691 on at
    Re: Color an icon in red if the desktop is already reserved

    Thanks ! What property am I writing this in?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard