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 / Filter on list multipl...
Power Apps
Unanswered

Filter on list multiple dynamic values

(0) ShareShare
ReportReport
Posted on by 297

I am building a fleet management and scheduling app.

 

Two SharePoint lists; 

Fleet - this is a list of al vehicles

Fleet Schedule - This is a checked out list. It has a Checkout, CheckIn and looking field back to the Fleet list. So it basically a list of dates and the vehicle that is checked out.

 

In PowerApps I am using a calendar component to select a data range of when they need to reserve a vehicle.  I need a gallery that shows the Fleet list and filters out the vehicles that are already checked out for that data range. 

Just as a test I have a gallery of unavailable vehicles for the date range selected so I was trying to filter the Fleet list based on filtering out the vehicles that are unavailable.

 

Not sure I am approaching this correctly but was trying to filter based on the ID of multiple records.

 

 

Something like...

 

Filter('Fleet',ID <> any vehicle ID of the 'Fleet Schedule' list for the data range selected.

 

Thank you 

Categories:
  • GarethPrisk Profile Picture
    2,828 on at

    This will be tricky to make delegable, so be mindful of the potential for some data to not be included.

     

    However, what you're describing is possible. Unfortunately, the NOT operator is not supported by SharePoint.

     

    If you bring your data into your app in Collections, you'll have options for those types of queries.

     

    Filter(
     colOne,
     Not(
     FieldName.Id in Filter(
     colTwo,
     DateField > DateCriteria,
     ).ID
     )
    )

     

    Something like the above. The date filtering part will be more elaborate than that, but that should give you the idea.

  • spsolutionsgrp Profile Picture
    297 on at

    Great, I will give it a try with Collections.

  • spsolutionsgrp Profile Picture
    297 on at

    @GarethPrisk The "ID" has an error "Can not covert this data type. PowerApps can not convert this Number to a Record."  Any recommendation for this issue?

    2020-05-29_8-40-53.png

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard