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 :
Power Platform Community / Forums / Power Apps / Reservation App- Filte...
Power Apps
Unanswered

Reservation App- Filter Gallery to show only available

(0) ShareShare
ReportReport
Posted on by 2

Hello! 

 

I am working on a kit reservation application. We have 2 SP lists - one is a list of the kits & one is a list of the reservations. When users enter the app, they choose a check in and check out date. I want my gallery to filter and show only kits that are available during their selected days- this is the function I am using, and it is not filtering correctly. Sometimes it shows the kits that are available, or it might pull a random unrelated kit out of the list. Any help would be appreciated! 

 

 

Filter(
'EV Marketing Kits & Descriptions',
Not(
Title in Filter(
'EV Marketing Reservation',
CheckOutFrom >= startDate && CheckOutTo <= endDate || CheckOutFrom <= endDate && CheckOutTo >= endDate
).EVMarketingKit1
)
)

 

EV Kits and Descriptions - SP list of kits 

EV Marketing Reservation- list of reservations 

Checkout From / CheckOutTo - columns in reservation SP list 

start date- variable being set on start date picker 

end date- variable being set on end date picker 

Title- title column in EV Kits and Descriptions SP list 

EVMarketingKit1- Kit name column in Reservation SP list

Categories:
I have the same question (0)
  • Prabhakar_S Profile Picture
    735 Moderator on at
    Re: Reservation App- Filter Gallery to show only available

    Hi @anbates ,

     

    Try this formula,

     

    Filter(
    'EV Marketing Kits & Descriptions',
    IsBlank(
    Lookup(
    'EV Marketing Reservation',
    Title = 'EVMarketingKit1',
    (
    (CheckOutFrom >= startDate && CheckOutFrom <= endDate) ||
    (CheckOutTo >= startDate && CheckOutTo <= endDate) ||
    (CheckOutFrom <= startDate && CheckOutTo >= endDate)
    )
    )
    )
    )

     

    Thanks!!!

     

    Please consider marking my response as the accepted solution if it successfully resolves your concern. If you found the information beneficial in other aspects, kindly express your appreciation by giving it a thumbs-up.

     

  • anbates Profile Picture
    2 on at
    Re: Reservation App- Filter Gallery to show only available

    Thank you for your help! 

     

    This is sending an error saying that isBlank has invalid arguments. Any thoughts?

  • Prabhakar_S Profile Picture
    735 Moderator on at
    Re: Reservation App- Filter Gallery to show only available

    Hi @anbates ,

     

    Give this a try,

     

    Filter(
    'EV Marketing Kits & Descriptions',
    IsEmpty(
    Filter(
    'EV Marketing Reservation',
    Title = 'EVMarketingKit1' &&
    (
    (CheckOutFrom >= startDate && CheckOutFrom <= endDate) ||
    (CheckOutTo >= startDate && CheckOutTo <= endDate) ||
    (CheckOutFrom <= startDate && CheckOutTo >= endDate)
    )
    )
    )
    )

     

    I hope this helps.

     

    Thanks!!!

  • Kenziesaitta Profile Picture
    2 on at
    Re: Reservation App- Filter Gallery to show only available

    I am trying to accomplish something similar; this formula has no errors but rather just leaves the gallery empty. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard