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 Pages / Count number of workin...
Power Pages
Answered

Count number of working days between two days

(0) ShareShare
ReportReport
Posted on by 11

Hi,

 

I have a table that contains a start date and an end date. I would like to evaluate, how many working days are between those two dates, e.g.: 

-start date: monday the 22th

-end date: monday the 29th

-write "6" into a separate table column

 

By now I could not find a way to do this.

 

Thanks a lot in advance!

Categories:
I have the same question (0)
  • Lucas001 Profile Picture
    2,555 Super User 2026 Season 1 on at

    Hello,

     

    I guess you want something like that:

    Lucas001_0-1684916434493.png

    You can just create a column with the type formula.

    Formula in that Case would be DateDiff(StartDate,EndDate)

     

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up. Thanks.

     

  • Verified answer
    HerrM Profile Picture
    11 on at

    Hi @Lucas001 ,

     

    Thanks a lot for your reply!

     

    This solution also counts the weekend (Saturday and Sunday) that I want to exclude in my calculation. 

    e.g.: if you put Friday the 19th as start date and Monday the 22nd I want the Output "2", because I only want Friday and Monday to be counted, not Saturday and Sunday. 

     

    I found a sort of a workaround: I only need this value for visualization, so I used the NETWORKDAYS - function in Power BI and then included Power BI into my power pages website. 

     

    But I would prefer a solution, where I could do this directly in the tables 🙂

     

    Best regards

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 61

#2
11manish Profile Picture

11manish 40

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 36 Most Valuable Professional

Last 30 days Overall leaderboard