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 Apps
Unanswered

SearchbyColumns

(0) ShareShare
ReportReport
Posted on by 6

I am a new to PowerApps.  When I created an app.  It defaulted the SearchByDolumns to the title. 1st, I would like to display data to be sorted by the most recent ID number at the top. Next, I would like to be able to search based on ID, Title and date.  Listed is the current code for the "TemplateGalleryList1":  I appreciate the help.

 

SortByColumns(Filter('CC IT Project Request Form', StartsWith(Title, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))

 

Here is the screen shot of the Browse screen:

 

Browse Gallery screen shot.png

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    1. To simply show your records from Highest ID put this formula:

     

     

    SortByColumns(
    'CC IT Project Request Form',
    "ID",
    Descending
    )

     

     

    2.

    StartWith function can only evaluate string column types but you can wrap them in Text()  function to turn them into strings, however it then becomes undelegatable.

     

    To allow searching by TItle, ID or Date put the following function in the Gallery1.Item:

     

     

    SortByColumns(
     Filter(
     'CC IT Project Request Form', 
     StartsWith(Text(ID), TextSearchBox1.Text) || 
     StartsWith(Title, TextSearchBox1.Text) || 
     StartsWith(Text(DateColumn,ShortDate),TextSearchBox1.Text)
     ), 
     "ID",
     Descending
    )

    Replace DateColumn with the name of your DateColumn

     

  • NCDewey Profile Picture
    6 on at

    Thank you so much for your help!!!.  That worked.

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