web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 9i0DVynZekWD0vNATtPiKb
Power Apps - Building Power Apps
Unanswered

Checking availability on a date from another table

Like (0) ShareShare
ReportReport
Posted on 6 Feb 2024 12:49:27 by

Hi Experts.

I have a desk booking application template from Aprill Dunnam. I wanted to convert it to book cars by the hour, but I can't show the cars available after a given hour in the gallery. Do you know how to fix it?

This is oryginal code: 

panxkruger_0-1707223467285.png

I tried modifying it this way:

 

Filter(
 Sort(col_Desks, Title);
 Not(
 Title in 'Desks Reservations'.DeskText
 ) && 
 (
 IsBlank(LookUp(
 'Desks Reservations',
 DeskText = col_Desks.Title &&
 (
 ('Check Out From' >= startTime && 'Check Out From' <= endTime) || 
 ('Check Out To' >= startTime && 'Check Out To' <= endTime) ||
 ('Check Out From' <= startTime && 'Check Out To' >= endTime)
 )
 ))
 )
)

 

 

but it still doesn't work, any suggestions? 

 

 

Thanks 🙂 

  • panxkruger Profile Picture
    on 07 Feb 2024 at 08:50:26
    Re: Checking availability on a date from another table

    Hi, I don't have a car collection. The tables are called desk in the same way, i.e. Desk Reservation and Desk. Collections are col_desk, col_reservation

  • Shaheer Ahmad Profile Picture
    2,194 Moderator on 06 Feb 2024 at 14:20:28
    Re: Checking availability on a date from another table

    Try this:

    Filter(
     Sort(col_Cars, Title);
     Not(
     Title in 'Cars Reservations'.CarText
     ) && 
     (
     IsBlank(LookUp(
     'Cars Reservations',
     CarText = col_Cars.Title &&
     (
     ('Check Out From' >= startTime && 'Check Out From' < endTime) || 
     ('Check Out To' > startTime && 'Check Out To' <= endTime) ||
     ('Check Out From' <= startTime && 'Check Out To' >= endTime)
     )
     ))
     )
    )

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2