Forum Discussion
prabhupan
9 years agoHelper I
Networkdays error
hello, as suggested in earlier discussions for calculating the networkdays / weekdays between dates; i created a table "Calendar" and then a flag "Check" which will be 1 for weekdays and 0 other...
- 9 years ago
Hi prabhupan,
Could you try the formula below to see if it works?:smileyhappy:
DaysGiven2 = VAR New1 = CALCULATE ( MAXX ( RRTRequestsStatusChanges, RRTRequestsStatusChanges[Date] ), FILTER ( RRTRequestsStatusChanges, RRTRequestsStatusChanges[New] = "1 New" ), FILTER ( RRTRequests, RRTRequests[RequestID] = RRTRequestsStatusChanges[FiD] ) ) RETURN CALCULATE ( SUM ( 'Calendar'[Check] ), FILTER ( Calendar, 'Calendar'[CalendarDate] >= RRTRequestsStatusChanges[StartDate] && 'Calendar'[CalendarDate] <= New1 ) )Regards
Phil_Seamark
9 years agoMicrosoft Employee
Hi prabhupan,
Just trying to understand where your error is.
What do you get when you run just the following
DaysGiven2 test =
VAR New1 =
CALCULATE (
MAXX ( RRTRequestsStatusChanges, RRTRequestsStatusChanges[Date] ),
FILTER ( RRTRequestsStatusChanges, RRTRequestsStatusChanges[New] = "1 New" ),
FILTER ( RRTRequests, RRTRequests[RequestID] = RRTRequestsStatusChanges[FiD] )
)
Return New1- prabhupan9 years agoHelper I