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 gallery by comp...
Power Apps
Unanswered

Filter gallery by comparing Choice column options from a List, against the items in a collection

(0) ShareShare
ReportReport
Posted on by 58

Hi there,

 

I have a collection with one column. The values in the column are chosen by the user at a previous point in the app.

There is a SharePoint List Choice column that contain the same values that would appear in the collection.

 

I want to filter a gallery based on the items that are matched from the collection to the Choice column.

 

I have this, in which the syntax is correct, but it doesn't seem to filter the gallery items at all:

Filter('Inhaler data for app', 'Overarching Drug Class'.Value <> "SABA" &&
Concat(ActivityCollection2,Value&",") in Concat('Drug Class',Value&","))  <----Adding this doesn't do anything

 

I have many other conditions in the filter, which seem to work ok, but this one doesn't. Full code:

J0el_0-1645791407432.png

 

Hope you can help 🙂

 

Thanks in advance! Joel

Categories:
I have the same question (0)
  • PaulD1 Profile Picture
    2,914 on at

    I would advise against using multi-choice columns as they are not a valid concept in relational databases (a multi-choice field is not an atomic value and so violates first normal form) and so cause lots of problems for querying, as your question demonstrates.

    Others here may be able to suggest some tricks/work-arounds, but I would suggest modifying your data structure to avoid the use of multi-choice fields.

    Note that SharePoint is very limited as a datasource in terms of relational querying ability (probably why it implemented choice fields in the first place!), so consider how much data your App will need to hold/manipulate and maybe consider a different datasource (though this will have licensing implications, so you may need to also consider a platform other than Power Apps as well).

  • J0el Profile Picture
    58 on at

    Hi Paul,

     

    Thanks for your reply. I'm sorry I don't think I made myself very clear.. The choice column does not allow multiple values. So I just want to match items from a collection to the choice column. So for example:

     

    If Collection contains: "Apple", "Pear", "Orange". The Gallery is filtered on the choice column that has those choices set for each record.

    This certainly sounds like a common requirement, I would have thought.

     

    Thanks again,

     

    Joel

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
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard