Showing results for 
Search instead for 
Did you mean: 
New Member

Need help with sorting by date

Need help with sorting by date, but also for a field contained in a sharpoint document where the collon is called billed how This is what is in the field today: SortByColumns(Filter('Hva skjer'; StartsWith(Antall;TextSearchBox1.Text)); "Antall"; If(SortDescending1; Descending; Ascending))

Power Apps
Power Apps

You can pass multiple columns to the SortByColumn function, and the sort will be done by all those columns. For example, in this expression:

    Filter('Hva skjer'; StartsWith(Antall;TextSearchBox1.Text));
    If(SortDescending1; Descending; Ascending)
    If(SortDescending1; Descending; Ascending))

Will first sort the list 'Hva skjer' by the column 'DateColumnName' (ascending or descending, depending on the toggle variable), and if there are items with the same date, it will use the column 'Antall' to "break the tie".

Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!


Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (73,546)