Forum Discussion
Network days with decimals
- 8 years ago
jcardea Hello
Please try the following calculated column
=COUNTROWS(FILTER(ADDCOLUMNS(CALENDAR(datestable[Enter],datestable[Modified]),"Day",WEEKDAY ([Date],1)),[Day]<>1&& [Day]<>7))+INT(datestable[Enter])+1-datestable[Enter]+datestable[Modified]-INT(datestable[Modified])-2
Please replace
- datestable by the name of your own table
- Enter column by start date
- Modified column by end date
The formula considers Sat and Sun as weekends
jcardea Hello
Please try the following calculated column
=COUNTROWS(FILTER(ADDCOLUMNS(CALENDAR(datestable[Enter],datestable[Modified]),"Day",WEEKDAY ([Date],1)),[Day]<>1&& [Day]<>7))+INT(datestable[Enter])+1-datestable[Enter]+datestable[Modified]-INT(datestable[Modified])-2
Please replace
- datestable by the name of your own table
- Enter column by start date
- Modified column by end date
The formula considers Sat and Sun as weekends
You are a legend!!! This works for me, thanks so much. Im trying to usnderstand the following part of the formula
........."Day", WEEKDAY ( [Date], 1 )
That is adding a number to this virtual table containing the day number so we can filter it out however where is "[date]" coming from and is it based on the first or 2nd date used int he formula?
Also is the formula basically working out whole days excluding weekends first, then adding in the fraction of a day?