Hi all,
I have a datetable that among other things calculates the workday Number for each month:
Works great in desktop, but when I refresh in service it counts each day as two instead of one. For example, September should look like:
But after refresh:
The formula for Workday number is:
Workday Number =
VAR CurrentMonth = Dates[Period]
VAR Monthtable = FILTER(ALL( Dates ), Dates[Day type 2] = "Workday" && Dates[Period] = CurrentMonth )
RETURN
IF(Dates[Day type 2] = "Weekend",
BLANK(),
RANKX( MonthTable, CALCULATE( AVERAGE( Dates[DayofMonth] ) ), , ASC ))
I'm really stumped. If anyone has an idea of what I could have done wrong please come with an suggestion. I would be eternally grateful.