Skip to main content

Notifications

Power Apps - Building 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:
  • Ajwou Profile Picture
    Ajwou on at
    Re: Inserting last record for selected value from a dropdown menu

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

  • Verified answer
    Ash13 Profile Picture
    Ash13 573 on at
    Re: Inserting last record for selected value from a dropdown menu

    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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard