Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Show parking booking slots

(1) ShareShare
ReportReport
Posted on by 82
Hello,
 
I manage an app for parking booking and want to show the booking slots for each parking place. Something like that:
 
 
What I've done can show only the slot for the first booking but I want to show red zone for all the slots of the day per place.
  1. I make a container with 11 Textfield to show the hours
  2.  I make a gallery with the bookings of the day as datasource
  3.  Field of this gallery:
    1.  Title with the name of the place
    2.  Rectangle with properties:
      1. X = 
        DateDiff(DateTime(Year(DatePicker.SelectedDate), Month(DatePicker.SelectedDate), Day(DatePicker.SelectedDate), 7, 0, 0),LookUp(MyBookingDayCollection,Code_Parking=ThisItem.Numero).startHour,TimeUnit.Minutes)*1.5
        The size for 30 minutes is 45, that's why I put *1.5
        Width = 
        DateDiff(LookUp(MyBookingDayCollection,Code_Parking=ThisItem.Numero).startHour,LookUp(MyBookingDayCollection,Code_Parking=ThisItem.Numero).endHour,TimeUnit.Minutes)*1.5
         
For example the parking place 45 is booked 2 times this day:
 
And with my code, I see only the first slot in red:
 
I had the idea to make it with a horizontal gallery with 22 rectangles into the vertical gallery but cannot achieve it simply.
 
Could you help me?
 
Categories:
  • RH-07080703-0 Profile Picture
    82 on at
    Show parking booking slots
    Hello @SebS,
     
    How can I search the booking related to the time slot?
    Because in my SharePoint list, I have only a start and a end time for a booking.
  • Verified answer
    SebS Profile Picture
    4,197 Super User 2025 Season 1 on at
    Show parking booking slots

    Hello,

    You’ll need to take a slightly more complex approach to display bookings correctly.

    Set up a nested gallery structure like this:


    1. Outer Gallery – shows each Place or Parking Slot.

    2. Inner Gallery – inside each place, list all the time slots (e.g., 30-min intervals).

    3. For each time slot, check if there’s a related booking. If a booking exists for that slot and place, you can visually mark it (e.g., show a red box or booking details).


    4.  

    This setup lets you map each time slot to its related booking, grouped under the correct parking place.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >