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 / Filtering a gallery ba...
Power Apps
Unanswered

Filtering a gallery based on what is selected in a multi select combobox.

(0) ShareShare
ReportReport
Posted on by 76

I have a document library housed on SharePoint with a text column containing a string of names separated by commas.  In my Canvas Power App I have a combobox with a list of choices and a Gallery where I want to display my document library. 

I want to filter the document library based on the selected items in the combo box. If any of the selected items in the combo box are present in the list of names in the SharePoint text column I want that document to be in the Gallery. 

 

This is what i have in my Items control of the Gallery 

Filter('My Document Library', My_combobox.SelectedItems.'Name ({Name})'  in 'MySharePointColumn'
'Name ({Name})' is the name of the field in my Combobox where the value i want to check if it is in my SharePoint text column is located. 
 
this approach has usually worked for me but this time i am getting this error " Cannot use Table values in this context" 
 
what am i doing wrong here?
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,544 Most Valuable Professional on at

    Hi @Blarue ,

    You have a many-to-many relationship there - note also this is not Delegable, nor can you make it so when you need to use the in filter.

    Ungroup(
     ForAll(
     My_combobox.SelectedItems As _Data,
     Filter(
     'My Document Library', 
     _Data.'Name ({Name})' in 'MySharePointColumn'
     )
     ),
     "Value"
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 387

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 301

Last 30 days Overall leaderboard