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 / Select the recent date...
Power Apps
Answered

Select the recent date record by Lookup function

(0) ShareShare
ReportReport
Posted on by 1,119

Hi there,

 

In my List for a diary farm, i have a animal details with its tag. In a dashboard i would like to show when the animal was last calved.

So i am trying to search the animal record by its tag.

 

In my OK button, i have written this code.

 

Set(varAnimalRec, Lookup(myDiary, ear_tag=txt_tagno.Text)

This is giving me the result as below.

venka91_0-1652339786269.png

 

Now from this result, i want to see when the animal was last calved.

I have column "Calving Date" as a Date and Time column, which holds the date of calving.

Now i want to filter this result with latest calving date.

 

Can anyone help how to i filter the lookup result based on latest calving date ? 

Categories:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @venka91 

     

    Set(
     varAnimalRec, Lookup(
     Sort(
     myDiary, animal_calvingdate,Descending
     ), ear_tag=txt_tagno.Text
     )
    )

     

    I am assuming "myDiary" is not a typo.

     

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 350 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 318

#3
Mohsin Ali Profile Picture

Mohsin Ali 220

Last 30 days Overall leaderboard