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 / Filtering gallery opti...
Power Apps
Answered

Filtering gallery options, replace StartsWith

(0) ShareShare
ReportReport
Posted on by 119

Hi all

 

I have a gallery setup with the below code which allows me to Filter my gallery by Title, Sort my gallery by Title A to Z, and have the default sort as last modified.  I would like to change the StartsWith so when using the Filter I can search by any part of the Title and am not limited to StartsWith, is this possible?

 

If(varSortTitle,Sort(Filter([@'MIM - Customer Database'],StartsWith(Title,CustomerSearch.Text)),Title),Sort(Filter([@'MIM - Customer Database'],StartsWith(Title,CustomerSearch.Text)),Modified,Descending))

 

Any help would be appreciated.

Thanks 🙂

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,958 Most Valuable Professional on at

    Hi @Alison1 ,

    That code looks familiar . . .

    You can do it as below, but it is not Delegable (nor can you make it so)

    If(
     varSortTitle,
     Sort(
     Filter(
     [@'MIM - Customer Database'],
     CustomerSearch.Text in Title	
     ),
     Title
     ),
     Sort(
     Filter(
     @'MIM - Customer Database'],
     CustomerSearch.Text in Title
     ),
     Modified,
     Descending
     )
    )

     

    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

     

  • Alison1 Profile Picture
    119 on at

    Brilliant! Thanks again @WarrenBelz 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard