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 Collection with...
Power Apps
Answered

Filter Collection with multi dropdown, search and NOT()

(0) ShareShare
ReportReport
Posted on by 377

Hi there,

My Gallery for "colSearchHost" is Filtered with the below.  I want the result Items in ColSearchHost only if they are NOT in another list called HostSearch list.
Note "And Not(ID in HostSearch.HostsID

 

 

 

 

Search(
If(
//All
 TyepOfStayDropdown.Selected.Result="All" ,colSearchHost,
//Selected Stay Types
TyepOfStayDropdown.Selected.Result<>"All" , 
Filter(colSearchHost, TypeOfStay = TyepOfStayDropdown.Selected.Result And Not(ID in HostSearch.HostID))),
//SearchBox by Surname
TextInput1.Text,"HFsurname")

 

 

 

 

 The above does not work but does not give an error so Im close I feel. 
I need to have the same "NOT" set for the //All and //SearchBox functions and I was hoping someone could help me.  I have tried many ways but just get errors.

Categories:
  • Verified answer
    StuCundy Profile Picture
    377 on at

    I managed to solve it myself.  Just needed a filter on the All and the search does not need NOT as it just searches from within the Filtered results.

     

    Search(
    If(
    //All
     TyepOfStayDropdown.Selected.Result="All" ,
     Filter(colSearchHost, Not(ID in HostSearch.HostID)),
    //Selected Stay Types
    TyepOfStayDropdown.Selected.Result<>"All" , 
    Filter(colSearchHost, TypeOfStay = TyepOfStayDropdown.Selected.Result And Not(ID in HostSearch.HostID))),
    //SearchBox by Surname
    TextInput1.Text,"HFsurname")

     

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
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard