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 / Search and Sort by Name
Power Apps
Unanswered

Search and Sort by Name

(0) ShareShare
ReportReport
Posted on by 32

Hi,

 

I have a gallery and would like the search option and sort to be based on the Names. I can't seem to figure out.

 

Here's how the gallery has been set up:

 

sandyabegail_0-1603292710440.png

sandyabegail_1-1603349873709.png

 

 

And here's the formula: SortByColumns(Filter([@ProdTrackerTest], StartsWith(Title, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending)) Help please. Thank you!

 

 

 

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

    Hi @sandyabegail ,

    I am not entirely clear on this and Name is not a good title for a field, but are you after

    SortByColumns(
     Filter(
     [@ProdTrackerTest], 
     StartsWith(
     Name, 
     TextSearchBox1.Text
     )
     ), 
     "Name", 
     If(
     SortDescending1, 
     Descending, 
     Ascending
     )
    ) 

     

    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.

  • sandyabegail Profile Picture
    32 on at

    Unfortunately, this did not work. Or I'm doing it wrong.

     

    To clarify,  I want the users of the app be able to search using the Display Name - which is the Body field of the gallery. 

     

    Also, the gallery should show the most recent entries on top. 

  • WarrenBelz Profile Picture
    155,290 Most Valuable Professional on at

    @sandyabegail ,

    The "Body" is not a field - the data is from the field Name (which you also should consider changing). If you want the most recent items on top

    SortByColumns(
     Filter(
     [@ProdTrackerTest], 
     StartsWith(
     Name, 
     TextSearchBox1.Text
     )
     ), 
     "ID", 
     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.

  • WarrenBelz Profile Picture
    155,290 Most Valuable Professional on at

    Hi @sandyabegail ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    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.

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard