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 Automate
Unanswered

Date filtering

(0) ShareShare
ReportReport
Posted on by 3
I have a one flow that adds rows to a table based on an external input, and also inputs the date it was added.
 
I have another flow that analyzes inputs of the table and classifies them based on an AI model.
 
As previous entries have already been classified, I want to input a date filter, for it to only run the model on items added yesterday.
 
I've tried multiple solutions:
  • Format the Date in Excel as ISO (yyyy-MM-ddTHH:mm:ssZ) and in the filter greaterOrEquals(item()?[Time Added by the flow], addDays(utcNow(),-1)
  • Used formatDateTime on both sides
  • Covert the Dates in Excel as 'yyyy-MM-dd' and Initialize a variable "Yesterday" - formatDateTime(addDays(utcNow(),-1),'yyyy-MM-dd'), and use the filter on that variable
Every single option the output is blank.
 
How do I set this filter?
 
Categories:
I have the same question (0)
  • sandeepstw Profile Picture
    312 Moderator on at
    Hi, 
     
    When you use expressions like  'greaterOrEquals(item()?['Time Added by the flow'], addDays(utcNow(), -1))'
     
    Add a Compose step to output your formatted date.
    Then peek code in the Condition to verify your expressions evaluate to the same type.
     
    working filter for “yesterday only”
     
    @and(
        greaterOrEquals(items('Apply_to_each')?['DateAdded'], startOfDay(addDays(utcNow(), -1))),
        less(items('Apply_to_each')?['DateAdded'], startOfDay(utcNow()))
    )
     

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 Automate

#1
Vish WR Profile Picture

Vish WR 953

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 622

Last 30 days Overall leaderboard