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 / How to set condition t...
Power Automate
Answered

How to set condition to compare dynamic date with a fixed date?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello

 

I have a column of dates from Excel online in the following format:

25/12/2021
31/12/2021

31/12/2021

02/01/2022
09/01/2022

26/01/2022

 

I want to build Flow with a condition that will show only the dates as from 03/01/2022.

 

Here is my attempt:

MakeItReal_0-1641611770718.png

 

ticks(addDays('1899-12-30',int(items('Apply_to_each_-_in_table_Forms_Data')?['End date']), 'yyyy-MM-dd'))
 is greater than or equal to
ticks('2022-01-03'))

 

But it gives an error! Any help would be much appreciated!!

Categories:
  • VictorIvanidze Profile Picture
    13,083 on at
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It is quite confusing. I used the formula:

     

     

    add(div(sub(ticks(2022-01-03),ticks('1900-01-01T00:00:00Z')),864000000000),1)

     

     

    But i get an error! Should i change both conditions or just the fixed date? I tried both and it is not working.

    In my first formula, it states 1899-12-30 but in your suggested website, it uses 1900-01-01. That might be causing issues??

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous :

    Please put quotes around the date and try again:

     

    add(div(sub(ticks(2022-01-03),ticks('1900-01-01T00:00:00Z')),864000000000),1)

     

    Best Regards,

    Bof

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

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 178

Last 30 days Overall leaderboard