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 / How to Get filtered va...
Power Apps
Unanswered

How to Get filtered value in gallary control in Canvas App

(0) ShareShare
ReportReport
Posted on by 51

Hello, 

I have Gallery control, which is connected with Collection, 

& in the gallery, one is label control - which shows a status value from Sharepoint Datasource.

What I want is - 

1. I want the pending requests should be visible on top or can be filtered with some kind of dropdown.

2. I am unable to achieve this functionality because - the Gallary item property contains a collection, & that label text is fetching value from SharePoint list.

 

PS: Attached the screen shot, 

please help.

 

Screenshot 2022-12-12 110943.jpg
Screenshot 2022-12-12 111016.jpg
Categories:
I have the same question (0)
  • Sid_98 Profile Picture
    103 on at

    Hi @Prakhar_Gupta1 ,

    You can add the status column in your collection based on the corresponding record and then you can use that filed in the label in your gallery. That would be easier for you to filter the gallery. Can you tell if the collection is created with SharePoint list data? 

  • Prakhar_Gupta1 Profile Picture
    51 on at

    Hello @Sid_98 

    Actually, i have 2-3 list in SharePoint, in which list_1 is the main list (That contains the status column)  & list_2 contain some information with is linked(in a relationship) with list_1.

    I am managing relations with the CI_ID column name.

    1. now the gallary control item property is Collection that is linked with list_1

    2. but the label inside that galley control is fetching its value directly from list_2(that also contains a status column).

     

    now I want that to the user, pending requests should visible on top.

     

     

    i tried:

    1. i did writing filter in formula with collection itself, but that status is different from what i want.

    2. i did writing filter with list_2, that also fails to give status because i want to show the list_1 data in gallary.

     

    please help, let me know, if i am unable to explain, may be we can connect over call.

    Attached is the example image

    Screenshot 2022-12-12 113854.jpg
  • Sid_98 Profile Picture
    103 on at

    As I have understood you have same status column in both the entities. I have tried to filter the gallery based on the dropdown selection. You can refer to the below code. See if it works.

    If(
     Dropdown1.Selected.Result in test1.Status,
     Filter(
     test1,
     Dropdown1.Selected.Result = Status
     ),
     SortByColumns(
     test1,
     "Status",
     Descending
     )
    )

    Don't get confused by the naming of entity I used here.

    Refer test1 is the collection I am using here and status is the status column in this collection i.e. test1. It might be different in your case.

    How I created the collection is ClearCollect(test1(my collection), Test2(My data source which in your case is the list_1 or main list))

  • Prakhar_Gupta1 Profile Picture
    51 on at

    hey, 

    i tried, the same way but seems like........

    attached is the screen shot.

    Screenshot (16).png

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard