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
- jcardea8 years agoRegular Visitor
Hi,
I trieded but there was an error saying "The start date in Calendar function can not be later than the end date." and I'm sure that none of the starting dates are later than the end dates...
thanks!
- ChandeepChhabra8 years ago
Impactful Individual
jcardea Can you please share your data ? I'll see what's going wrong
- Anonymous6 years agoNot applicable
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?
- rlamarche8246 years agoNew Member
This function is awesome and works great for calculating turnaround times in my reports.
I'm tyring to generate another report where I would like turnaround time involved using this formual but I will also have cases where closed date has not yet been populated. Due to this I'm receiving an error. .
Is there any way to use this formula but filter for just for closed values? I have a column that identifies if a row has been closed or not.