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 / Filter and Sort Gallery
Power Apps
Unanswered

Filter and Sort Gallery

(0) ShareShare
ReportReport
Posted on by 726

I have a gallery i would like to allow a search for requester name and also display all the records in descending order based on the ID. 

 

This doesn't work, so im a bit stuck.

 

Sort(
	Filter(Uniform,
		REQUESTER = TextInput31.Text).
	
	Descending
)

 

 

 

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @amyharkus86 -

     

    The below assumes the Requestor Name column is a People Column:

     

     

    Sort(
     Filter(
     Uniform,
     IsBlank(TextInput31.Text) || StartsWith(
     REQUESTOR.DisplayName,
     TextInput31.Text
     )
     ),
     ID,
     SortOrder.Descending
    )

     

     

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved.

    If you like my response, please give it a Thumbs Up.

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @amyharkus86 ,

     

    You need to change the formula similar to this:

    SortByColumns(
     Filter(Uniform,
     REQUESTER = TextInput31.Text
     ),
     <column-name>,
     Descending
    )

     

    Modify the column name and formula accordingly.

     

    Hope this helps

     

  • amyharkus86 Profile Picture
    726 on at

    @Amik 

     

    This works, with slight change 

    Sort(
    Filter(Uniform, TextInput31.Text = REQUESTER)
     
     ,
     ID,
     SortOrder.Descending
    ) 

     

    But I'd like it to display everything even if TextInput31 is blank

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @amyharkus86 - If REQUESTOR is a Single Line Text column, you could can use the same code but slightly modified:

     

    Sort(
     Filter(
     UniForm,
     IsBlank(TextInput31.Text) || StartsWith(
     REQUESTER,
     TextInput31.Text
     )
     ),
     ID,
     SortOrder.Descending
    )

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved.

    If you like my response, please give it a 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 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard