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 Automate / Filter Query in Get It...
Power Automate
Answered

Filter Query in Get Items for latest date

(0) ShareShare
ReportReport
Posted on by 7

I would like to get all rows in my SharePoint List where the date is the latest / maximum date in the list. There will be more than 1 result as there are multiple items for each date in my list. How should I go about doing this in Get items step?

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @acs1 , Try this

    SudeepGhatakNZ_0-1706159540553.png

     

  • acs1 Profile Picture
    7 on at

    @SudeepGhatakNZ do you mean to leave 'Filter Query' blank and do a sort instead? I tried it but it didn't work, as it resulted in the same number of rows as my original list.

    Just to further clarify using below illustration as an example, I would like to "get" only the rows in yellow since those 2 rows have the latest dates. 

    acs1_0-1706166534490.png

     

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Sorry, I misunderstood your question. You do infact need to use the filter.

    Try something like this:

    1) Get the maximum date by getting the first item in your Get items action output

    2) Next use filter to get dates that match that value.

    SudeepGhatakNZ_0-1706190130906.png

     

      

  • acs1 Profile Picture
    7 on at

    Thanks, it worked!

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 339 Super User 2025 Season 2

#1
trice602 Profile Picture

trice602 339 Super User 2025 Season 2

#3
David_MA Profile Picture

David_MA 270 Super User 2025 Season 2

Last 30 days Overall leaderboard