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 / Canvas App - Using 'in...
Power Apps
Answered

Canvas App - Using 'in' to filter a field based on a collection - SOLVED

(1) ShareShare
ReportReport
Posted on by 118
Hello
 
I hope I am able to explain this properly, and so someone can help.  Im at the hair pulling stage.
 
Canvas App, linked to a SharePoint List (s).
 
I am filtering a gallery based on a criteria.  The column being filtered is Location.   There is a second table I use for a dropdown that as country, so locations per country.
 
I am trying to filter the gallery by location, based on the country chosen in the drop down.
 
I have created a collection with the locations based on the country chosen in the drop down.
 
What I am unsure about is the syntax to add that to me Filter expression.
 
Collection:  (is on the onchange property of the drop down).
ClearCollect(colLocationFilter, Filter('PS - Lookups','Location Group' = Dropdown1.SelectedText.Value))
 
 
Filter:  (items of gallery)
Filter('PS - Main',  Location in ForAll(colLocationFilter,Location)')
 
I have tried find, search, to no avail.
 
Any help please?
 
Thank you
 
Stuart
 
 
 
 
 
 
 
I have the same question (0)
  • Verified answer
    NPPlatform Profile Picture
    606 Moderator on at
    Hi Stuart, try:
     
    Filter('PS - Main',  Location in ShowColumns(colLocationFilter,Location))
     
  • Stuart74 Profile Picture
    118 on at
    Hello

    In colLocationFilter the location is called Title, (just discovered).
     
    I get this
     
     
    Ive got it working, see
    Any ideas why I get the delegation warning?
     
    Thanks
     
    Stuart
     
  • NPPlatform Profile Picture
    606 Moderator on at
    Hi, the in function is not a delegable function. Good to hear your other question is answered! Please mark my post as answered, for other users to easily find the solution.
  • Stuart74 Profile Picture
    118 on at
    Thank you for your reply and solution.  Fantastic, thank you.
    I cannot mark as solved, so ill contact support to do so.
     
    Thanks
     
    Stuart

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard