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 / Condition Date is with...
Power Automate
Unanswered

Condition Date is within This Week

(0) ShareShare
ReportReport
Posted on by

Trying to get an automation that pulls rows from one Excel file only if that row's "DateSent" value is in the current week. So far I have it List rows present in a table, then I added a condition, but in the condition I can't seem to figure out how to write the formula to have it recognize "within this week".

Categories:
I have the same question (0)
  • Verified answer
    v-litu-msft Profile Picture
    on at

    Hi @rvigneau,

     

    You could initialize two string variables to store the start day of current week and end day of current week:

    Start Day of Week:

    addDays(utcNow(),int(concat('-',dayOfWeek(utcNow()))),'yyyy-MM-dd')

    End Day of Current week:

    addDays(utcNow(),sub(6,dayOfWeek(utcNow())),'yyyy-MM-dd')

    Screenshot 2021-01-27 105536.jpg

     

    Then create a condition check if a date is greater than or equals to start day of current week, and less than or equals to end day of current week:

    Screenshot 2021-01-27 105841.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard