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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Checking availability ...
Power Apps
Unanswered

Checking availability on a date from another table

(0) ShareShare
ReportReport
Posted on 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 🙂 

Categories:
I have the same question (0)
  • Shaheer Ahmad Profile Picture
    2,194 Moderator on at

    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)
     )
     ))
     )
    )
  • panxkruger Profile Picture
    on at

    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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard