cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Sorting a sharepoint list by the ID column before filtering.

Good-day

 

I have a problem where by i want to populate a text input(Odometer) with the last registered (Most Recent) Odometer reading in my share-point list(to remove human error as much as possible). However because my list is automatically in ascending its always returning the first record ever entered and not the most recent which is the only one that is relevant.

 

Thus far I've used the following LookUp:

LookUp(BowserSheet1, AssetNumber = DataCardValue12.Selected.Result, Odometer)

 

Could somebody please help me incorporate a Sort into that so its always checking the highest IDs first and then only the lower ones. To make my list in Descending

 

Attached is a photo a Dummy share-point List to help you understand

 

Thanks in advance. 

Matthew

 

@mdevaney  @v-siky-msft 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Sorting a sharepoint list by the ID column before filtering.

@MatthewLeslie 

Yes, of course.  You can SORT in descending order and then perform the LOOKUP like this:

LookUp(
    Sort(BowserSheet1, ID, Descending),
    AssetNumber = DataCardValue12.Selected.Result,
    Odometer
)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Sorting a sharepoint list by the ID column before filtering.

@MatthewLeslie 

Yes, of course.  You can SORT in descending order and then perform the LOOKUP like this:

LookUp(
    Sort(BowserSheet1, ID, Descending),
    AssetNumber = DataCardValue12.Selected.Result,
    Odometer
)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Highlighted
Helper I
Helper I

Re: Sorting a sharepoint list by the ID column before filtering.

Thanks so much my friend, have a nice day.

 

Kind Regards 

Matthew 

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,999)