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 / Not able to filter Gal...
Power Apps
Unanswered

Not able to filter Gallery using Collection

(0) ShareShare
ReportReport
Posted on by 4

Hello!

 

I have a problem filtering my Gallery.

I use this Table to demonstrate the idea of what i am trying to achieve ( i don't have this Table build, but i am considering building it if i can't solve this problem otherwise). I have 100 sections, so building this kind of table takes a lot of effort.

Basically what i want to do is to filter Section -column by using Group -column values and show filtered values in gallery.

SectionNameBegins -column is only there for helping in mapping Section and Group -columns together.

 

SectionSectionNameBeginsGroup
F1FS
F2FS
F3FS
G1GS
G2GS
G3GS
......S
K1KK
K2KK
B1BB
B2BB
.........

 

Section -column data comes from SQL-table and i have added SectionNameBegins -column to that table using AddColumn and Left functions in Gallery - Items properties.

 

Then i have a Collection with two columns: 

 

StormCrafter_2-1678283558925.png

StormCrafter_3-1678283580928.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I have a drop down that uses values from Collection - Group column.

 

For example when i choose "S" from drop down, i want the gallery show all records that has Section values "F1","F2","F3","G1",G2",G3".. and so on.

 

I have googled this around and tried multiple ways to solve this, but i can't put this together..

Categories:
I have the same question (0)
  • RJM07 Profile Picture
    801 on at

    You shouldn't even need the collections.

    In the Items section of the Gallery do

    Filter(TableName,Group=Dropdown1.SelectedText)
  • StormCrafter Profile Picture
    4 on at

    @RJM07I'm sorry if i my post was unclear, but i don't have the Group information anywhere else than in my collection. I'm trying to avoid adding new Group -column to that table since i have over 100 records in it. If i had that column, in that i case your solution would work.

  • RJM07 Profile Picture
    801 on at

    Oh I see! So you're trying to get the dropdown to identify which collection  to use... correct?

  • RJM07 Profile Picture
    801 on at

    Or if it's just the one collection that you're using then surely that would still work, just adjust it for the collection

     

    Filter(CollectionName,Group=Dropdown1.SelectedText)
  • StormCrafter Profile Picture
    4 on at

    I have Table with Section Column that can have values F1,F2,G1,G2..

    I use that Table to show records in Gallery.

     

    Wanted Feature

    Selecting "S" from drop down the Gallery shows records with Section F1,F2,G1,G2,H1,H2...

    Or if i choose "K" from drop down the Gallery shows records with Section K1,K2,K3...

     

    Problem

    My Table has only Section column associated to this problem, so how can i achieve such a filter?

    I want to filter my Table but there are no information about groups.

    For that purpose i made Collection shown in original post. I want to leverage that collection to achieve this kind of filtering.

     

    The last row of this code don't work, but hopefully it clarifies the idea.

    In the Items section of the Gallery i have this:

     

    Filter(
     AddColumns(
     Filter(
     TABLE1,
     AREACODE = 12345,
     WORKERCOUNT <> 0
     ),
     "SectionNameBegins",
     Left(SECTION,1)
     ),
     SectionNameBegins = Collection1.SectionNameBegins.Value && 
     Dropdown1.SelectedText.Value = Collection1.Group
    )

     

    Don't mind the AREACODE and WORKCOUNT filter they are not related to this problem.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard