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 Platform Community / Forums / Power Apps / Inserting last record ...
Power Apps
Answered

Inserting last record for selected value from a dropdown menu

(0) ShareShare
ReportReport
Posted on by

Hello, 

I have a vehicle check app based on a form linked to a sharepoint list. It stores data about each journey. What I am trying to do is to set the default value of initial mileage to the last recorded value for particular vehicle that is selected in the dropdown menu (also being pulled of the sharepoint lists as "choices"). See screenshot below:

Ajwou_0-1684510295510.png

Please could anyone help?

Kind Regards,

 

Categories:
I have the same question (0)
  • Verified answer
    Ash13 Profile Picture
    576 on at

    Hi @Ajwou 

    Try something like:

     

    First(Sort(Filter(SharePointList,VehicleColumn.Value=VehicleDropdown.Selected.Value),Created,SortOrder.Descending)).MileageColumn

     


    You may want to also replace Created with your 'On the road to' column

  • Ajwou Profile Picture
    on at

    Brilliant, that resolved it. Thank you very much for your help @Ash13 

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!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard