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 / Set a default value in...
Power Apps
Unanswered

Set a default value in a combo box that contains a lookup field

(0) ShareShare
ReportReport
Posted on by 2

Hi Guys I am stuck trying to solve the next problem:

 

I am using choices in a combo box since I have a lookUp field, the thing is that I want this combo box to be prepopulated with the last record in the SharePoint list, I wrote this formula

"Filter(Choices(SampleLog8kDef.Batch_ID);Id=Max(Id)"

but then it returns in the combo box the first record not the last, I hope you can maybe help me thanks 

 

Categories:
  • WarrenBelz Profile Picture
    156,752 Most Valuable Professional on at

    Hi @CrisLop ,'

    If you are referring to the DefaultSelectedItems

    First(
     Sort(
     SampleLog8kDef,
     ID,
     Descending
     )
    ).Batch_ID

    should put the last record in as Default if Batch_ID is a Lookup column.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

     

     

  • WarrenBelz Profile Picture
    156,752 Most Valuable Professional on at

    Hi @CrisLop ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard