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 display in Brow...
Power Apps
Answered

Search display in Browse Gallery

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm new to this all so please bear with me,

  I've got an app based of a sharepoint list.  I used create app function in sharepoint to build the app.  In the browse gallery screen I would like the information displayed to be different than than the default that came.  

 

This is what I currently have:

 

SortByColumns(Search('Appointment Book', TextSearchBox1.Text, "Student_x0020_First_x0020_Name"), "Student_x0020_First_x0020_Name", If(SortDescending1, Descending, Ascending))

 

I want it to display results based of the "modified" column instead of the "Student_x0020_First_x0020_Name" column.  I tried just reaplacing the column name but that gave be back blank results.  I think its because the modifed column is date/time and the search function works with strings?  Will using filter work and if so how?

 

Thanks,

Matt

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi Matt,

     

    I assumed that you replaced the “Student_x0020_First_x0020_Name” with “Modified” column by manually entering the word “modified”, am I right?
    And you not only got the blank result, but also a yellow warning icon.

     

    I created an app for a list in SharePoint Online, the default function it has is:
    SortByColumns(Filter(Employee, StartsWith(Title, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))

     

    Then I tried to replace the “Title” column with “Modified” column by manually entering the word “modified”. I got a blank result and a yellow warning icon:

    2.PNG

     

    Then I changed the “modified” to “Modified”, it worked, and I can sort the app by “Modified” column:

    3.PNG

     

    PS: When changing the column, you could delete the existing column name, then select one from the drop down menu.

    4.PNG

     

    Please try this on your side and let me know if it works for you.

     

    Best regards,
    Mabel Mao

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Mabel Mao,

      Thank you for your assistance on this.  I'm sorry its taken me so long to get back to this, I was put on another project.  I entered your suggestion and I am still getting the error.  This time it is an invalid argumetn type.  My Modfied column is a DateTime column and the Startswith argument is looking for a text value.  What argrument should I use instead of Startswith?

     

    Thanks,

    Matt

  • Verified answer
    v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi Mauth,

     

    Thanks for updating.

     

    Currently, StartsWith function can be used with Filter function to search the data within your app, please see this documentation about StartsWith function for more details:
    https://powerapps.microsoft.com/en-us/tutorials/function-startswith/

     

    As you are using Search function, so when you use StartsWith function with it, an “invalid argument type” error would be shown.

     

    I tried to configure the code looks like below, it is displayed based on a Date/Time column, and it just works fine:
    SortByColumns(Search(listF,TextSearchBox1.Text,"Title"),"date_x0020_only",If(SortDescending1,Descending,Ascending))

     

    Best regards,
    Mabel Mao

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    That worked! 

     

    Thanks!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard