web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Inserting last record ...
Power Apps
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 774 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 335 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 248

Last 30 days Overall leaderboard