Greg_Deckler
8 years agoCommunity Champion
Net Work Days
Recreates the NETWORKDAYS function from Excel with some bonus measures and one that needs fixed or demonstrates a bug/documentation glitch.
NetWorkDays calculates the number of days between two...
Greg_Deckler
6 years agoCommunity Champion
Oh, that would be the CALENDAR function. You would just have to create an IF statement to check which date is larger or smaller and then create your CALENDAR appropriately. Like this:
NetWorkDays =
VAR __CreatedDate = MAX(NetWorkDays[created date])
VAR __ReviewDate= MAX(NetworkDays[review date])
VAR Calendar1 =
IF(
__CreatedDate < __ReviewDate,
CALENDAR(__CreatedDate,__ReviewDate),
CALENDAR(__ReviewDate,__CreatedDate),
)
VAR Calendar2 = ADDCOLUMNS(Calendar1,"WeekDay",WEEKDAY([Date],2))
RETURN COUNTX(FILTER(Calendar2,[WeekDay]<6),[Date])
Anonymous
6 years agoNot applicable
Hi Greg_Deckler , Getting the attached error while using IF Condition. Kindly assist.