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 Automate / Get max date from Exce...
Power Automate
Answered

Get max date from Excel file with group by

(0) ShareShare
ReportReport
Posted on by 52

I have an excel spreadsheet containing this dataset:

 

PAuser_123_0-1697659802919.png

 

I want to get the max date of each unique ID in Pending status only. The output should look like this:

 

PAuser_123_1-1697659989027.png

 

How can I achieve this in power automate?

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @PAuser_1-2-3 ,

    I have a test for your reference.

    In my scenario:

    vyetonggumsft_0-1697698883164.png

    vyetonggumsft_1-1697698908105.png

    vyetonggumsft_3-1697699261752.png

    union(body('Select_2'),body('Select_2'))

    vyetonggumsft_4-1697699450149.png

    vyetonggumsft_5-1697699489353.png

    items('Apply_to_each')['ID']
    items('Apply_to_each')['Status']
    last(sort(body('Filter_array'),'Modified'))['Modified']

    Best Regards,

    Sunshine Gu

  • PAuser_1-2-3 Profile Picture
    52 on at

    Thank you @v-yetonggu-msft . This works perfectly. I just did some minor tweaks like applying the filter in "List rows in present table" action. I also moved the first "Compose" action with Union expression into "Apply to each" action. This helps the flow run faster. 

     

    Next, I want to update these two output items into a SharePoint list that contains other 400 items. I want to use ID to link the items in the list. How can I do this?

     

    PAuser_123_0-1697733935243.png

     

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard