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

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

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 Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard