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 / 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:
  • SudeepGhatakNZ Profile Picture
    14,396 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,396 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

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 Automate

#1
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#2
Henil Profile Picture

Henil 128

#3
anirudhev Profile Picture

anirudhev 124

Last 30 days Overall leaderboard