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 / Would filtering out da...
Power Automate
Unanswered

Would filtering out dates X years before today be greater then or less then in the condition action?

(0) ShareShare
ReportReport
Posted on by

So I am trying to automate kind of archiving some excel data. Basically once a month it will check a specific tab in my tracker. If the date column is 1 year before todays date it will be moved to and Archive file and then deleted. I guess I have two questions

One what should the conditions be for this  Right now I have

formatDateTime(triggerBody()?['Date'], 'yyyy-MM-dd')
Is less then
addYears(utcNow(), -1)
 
Second for the delete a row I put in the Date column as the key column and I was wondering if this expression works for the key value.
formatDateTime(addYears(utcNow(), -1), 'yyyy-MM-dd')  
Categories:
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @rmartori 

     

    for the key value, you have to check how date format looks like in output of list rows present in table and then use the format accordingly.

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard