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 / DateDiff in business/w...
Power Automate
Unanswered

DateDiff in business/working days

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I am trying to work out the difference between 2 dates but skipping by weekend days. I can use 

div(sub(ticks(outputs('FirstDueDate')),ticks(outputs('FirstDayOfHolidays'))),864000000000) but this doesn't skip by weekend days.
 
Thanks
Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at

    Hi!

    One possible trick is to use dayOfWeek() to identify both saturdays and sundays; and a Do Until with a counter.

    Please have a look to this other topic, so hopefully you can adapt it to your needs

    https://powerusers.microsoft.com/t5/Building-Flows/Calculating-Business-days-using-flows/td-p/315402

    If so, please remember you will probably need to Change Do Until Limits, by default the max nr of loops is 60

    Hope this helps

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard