Forum Discussion
jcardea
8 years agoRegular Visitor
Network days with decimals
Hello, I'm new to power BI, and im trying to create a new calculated column that can calculate the number of working days with decimals between two dates. In excel would be something like this: ...
- 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
8 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!
ChandeepChhabra
Impactful Individual
8 years agojcardea Can you please share your data ? I'll see what's going wrong