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 / 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
    153,117 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
    153,117 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
    153,117 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard