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 filter Sharepoi...
Power Apps
Answered

How to filter Sharepoint List

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey I would like to filter a Sharepoint List when an icon is clicked. The GalleryList should show the items where the selection column is like "abc".

 

Is there any solution?

 

Thanks!

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

    Hi @Anonymous ,

    I am assuming you have a text input box to put "abc" in and you want to click an icon to filter a list.

    You don't actually need the icon.

    I will call the text box SearchText, the source list in the gallery MyList and the field in this list MatchField

    The Items property of the gallery should be

    Filter(
     MyList,
     MatchField = SearchText.Text
    )

    The gallery will be blank until a matching input is made.

    If you want the field to match the start of the search text

    Filter(
     MyList,
     StartsWith(MatchField, SearchText.Text)
    )

    In this case, you can make the Default of SearchText "" (double quotes) and the gallery will show all items and then progressively show items starting with letters typed.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more. It also closes the item.

     

     

  • eka24 Profile Picture
    20,925 on at
    1. Insert A Textbox and a Gallery.
    2. Place this formula on the item property of the Gallery:
    Filter (YourtableName,ColumnName=Texbox.text)
    3. Now when whatever you type in the textbox would be filtered

    If it doesn't work, show your formula or describe your table columns
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Do you want to select columns as filter column dynamically via clicking the corresponding icon?

     

    I have made a test on my side, please consider take a try with the following workaround:

    Set the OnSelect property of the Column Selection Icon to following:

    Set(SelectionColumn, "Column1")
    Set(SelectionColumn, "Column2")
    Set(SelectionColumn, "Column3")

    ...

    ...

    Set the Items property of the Gallery to following:

    Filter(
     'Data Source',
     If(
     IsBlank(SelectionColumn),
     true,
     If(
     SelectionColumn = "Column1",
     StartsWith(Column1, "abc"),
     SelectionColumn = "Column2",
     StartsWith(Column2, "abc"),
     SelectionColumn = "Column3",
     StartsWith(Column3, "abc"),
     ...
     ...
     )
     )
    )

     

    If you typed the "abc" within the TextSearchText box, please consider modify above formula as below:

    Filter(
     'Data Source',
     If(
     IsBlank(SelectionColumn),
     true,
     If(
     SelectionColumn = "Column1",
     StartsWith(Column1, TextSearchBox1.Text),
     SelectionColumn = "Column2",
     StartsWith(Column2, TextSearchBox1.Text),
     SelectionColumn = "Column3",
     StartsWith(Column3, TextSearchBox1.Text),
     ...
     ...
     )
     )
    )

     

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards,

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 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard