web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter for Label in Ga...
Power Apps
Unanswered

Filter for Label in Gallery

(0) ShareShare
ReportReport
Posted on by 82

Hi everyone,

Is there a way to filter a gallery based of labels in the gallery rows? 

 

I have a more complicated label (not just ThisItem.XXX) and I would like to add a filter field to filter the gallery for that label.

Thanks,

Makena

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,032 Most Valuable Professional on at

    Hi @mglemser ,

    You would need to use the same formula as the label in the Filter - you cannot filter a gallery on itself (it creates a circular reference)

     

    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.

    Visit my blog Practical Power Apps

  • mglemser Profile Picture
    82 on at

    Hi WarrenBelz,

    My gallery uses a GroupBy function. The items code for the gallery is: 

    GroupBy(Table13,"CO Number","CO State","Change Owner Name","DATA")

     

    In the gallery rows, I have a label with the text: 

    Concat( Distinct( ThisItem.DATA, 'Affected Item Name' ), Result & "; " )

     

    How would I filter the gallery for 'Affected Item Name"? I tried the following but it did not work:

    Filter(GroupBy(Table13,"CO Number","CO State","Change Owner Name","DATA"),Or(IsBlank(txtImpactedDoc),txtImpactedDoc.Text in DATA.'Affected Item Name'))

  • PaulD1 Profile Picture
    2,914 on at

    What is the datasource? If you are using SQL I would perform the data transformation in Views which will make the filtering much simpler.

    Note that GroupBy and Distinct are not delegable (unless these have been updated in Dataverse) so processing this client-side (in the Power App) will be slow and may not give the correct results if your data set is ever likely to exceed the delegable limit (500 to 2000 rows).

  • mglemser Profile Picture
    82 on at

    My datasource is an Excel file (also not delegable).

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard