Forum Discussion
RvdHeijden
9 years agoPost Prodigy
DateDiff with a BLANK value
I have a question about a 'simple' datediff formula. Ive got 2 date values and i need to know the difference between them. At first this is a simple question if both colums have values. But some...
RvdHeijden
9 years agoPost Prodigy
The start and enddate of a complaint is in the same row and in the same table
Complaint Startdate Enddate difference (in workingdays)
A 25-7-17 27-7-17 3
B 25-7-17 1-8-17 6
Vvelarde
9 years agoCommunity Champion
Hi RvdHeijden
Try with this calc column:
Difference in working Days =
VAR EndDate =
IF ( Compliants[EndDate] = BLANK (), TODAY (), Compliants[EndDate] )
RETURN
COUNTROWS (
FILTER (
CalendarTable,
CalendarTable[IsWorkingDay] = 1
&& CalendarTable[Date] >= Compliants[StartDate]
&& CalendarTable[Date] <= EndDate
)
)
Let me knows if work
Regards
Victor
Lima - Peru