Quantcast
Channel: Service topics
Viewing all articles
Browse latest Browse all 61971

Workingday Number fails when refresh in service

$
0
0

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: 

Maols_3-1599661764441.png

 

But after refresh: 

Maols_2-1599661723529.png

 

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. 
 
 

Viewing all articles
Browse latest Browse all 61971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>