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 / display the latest entry
Power Apps
Answered

display the latest entry

(0) ShareShare
ReportReport
Posted on by 18

I have data source connected to Ms Excel. 

in the first column, there is a list of Trolley ID :["1","2","3","4","5"]

How to display the latest entry of each trolley ID in the gallery? 

 

Categories:
I have the same question (0)
  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @jchandra 

     

    Last(col).Value will give you the last entry. 

     

    e.g. 

    consider the the variable x as a table 

    Set(x,["1","2","3","4","5"])

    Last(x).Value will return 5 

     

    Regards,

    R

  • jchandra Profile Picture
    18 on at

    for example I have this table where each row is entry input in powerapp.
    so I would like to display only the latest entry of each Trolley ID (highlighted in yellow) on the gallery.

    Please help if have any idea, thank you..

    how to display latest entry.JPG

  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @jchandra ,

     

    I have made a test for your reference.

     

    1. Here is my excel table.

    vyujincuimsft_1-1656404693800.png

    2. Add a Button Control and apply the following formula on its OnSelect property as:

    ForAll(Distinct(datasource,'Trolley ID'),Collect(collectionname,First(Sort(Filter(datasource,Value('Trolley ID')=Value(Result)),'Last Checked Date',Descending))))

    3. Select the Gallery Control and set its items property to collectionname.

    vyujincuimsft_2-1656405070161.png

     

     

    Best Regards,
    Charlie Choi

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard