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
Answered

Sort data

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am new to power apps and building an app at the moment to input and display data. The data is stored on a SharePoint list named "new cell" and the data table is named DataTable2 with the ID column named ID_column1

 

On one screen i have a data table to display the data that has been input, this is currently by default sorting the data using the ID column in ascending order - I would like this to display in descending order showing the latest information first. 

 

Any help appreciated

Powerapp test.jpg
Categories:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Items property of datatable
    Sort("new cell", ID, Descending)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, Drrickryp,

     

    Sort('New cell',ID,Descending) worked a treat,

    Would it be possible to add a filter to this ? the last column displays locations Cell 1 to Cell 5, would i be able to just display "Cell 1"

     

    Thanks

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    Put a. Dropdown control on the screen with items property Distinct(‘new cell’, Cell) and change the datatable items property to 

    Filter(Sort('New cell',ID,Descending), Cell=Dropdown1.Selected.Result)

    assumes that the last column is named Cell.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard