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 / Retrieving a record fr...
Power Apps
Unanswered

Retrieving a record from the table for the last saved record for a selected item.

(0) ShareShare
ReportReport
Posted on by
Hello, i am contructing an application to collect data. I have one field that needs to display the last saved record for a select item in a gallery. I believe i would have to patch using a date function but i can not figure it out. Thank you for any help you can provide.
Categories:
I have the same question (0)
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    You could use something like this:
    First(SortByColumns(Filter(DataSource, ID = Gallery.Selected.ID), "Created", SortOrder.Descending)).ColumntoDisplay
    Replace Created with CreatedOn or something for Dataverse table. 
     
    Basically in the above formula,
    1. we are first filtering Data for the Selected Item
    2. Sorting it by Created Data in Descending order so that the latest item is at the top. 
    3. Getting the column value we want to display from the first record. 
     
    Let me know if it doesn't solve your issue. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     
  • Nandit Profile Picture
    1,568 Moderator on at
    Hi,

    Following up to check if you were able to solve this issue using my suggestion?

    Kind regards,
    Nandit

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 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard