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 / Excluding weekend from...
Power Automate
Unanswered

Excluding weekend from date range

(0) ShareShare
ReportReport
Posted on by 290

Hey! I want to calculate, how many days are in the range. I have this formula: 

add(sub(dayOfYear(item()?['end']),dayOfYear(item()?['start'])),1)

Which works perfectly, but I need to exclude weekends from it. Could someone help?

 

Thanks!

Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at

    See the following posts for guidance:

    • Calculating working days in Power Automate

    https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Calculating-working-days-in-Power-Automate/ba-p/557278

    • And Calculating working days in Power Automate or Logic Apps

    https://www.chorus.co/resources/news/calculating-working-days-in-power-automate-or-logic-apps

    Ellis

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard