cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MatthewLeslie
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
mdevaney
Super User
Super User

@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
mdevaney
Super User
Super User

@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."

Thanks so much my friend, have a nice day.

 

Kind Regards 

Matthew 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (3,022)