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 / 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,679 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,679 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard