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 / 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

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:
I have the same question (0)
  • VictorIvanidze Profile Picture
    13,073 on at
  • Community Power Platform Member Profile Picture
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard