I keep getting this error when running the report for a specific date range."Error in formula . 'WhilePrintingRecords; ' Division by zero.". Error Code: 515"
Here's the calculation formula, I need to deal with the circumstance where DistinctCount = 0. Any insight would be appreciated.
WhilePrintingRecords;
NumberVar RecruitDTF;
NumberVar DCCount := DistinctCount ({MWH_HR.REQ NUMBER}, {@STATus});
IF {@status} = "On Hold" Then
RecruitDTF := 0
ELSE IF {@status} = "Cancelled" Then
RecruitDTF := 0
ELSE IF DCCount = 0 Then
0
ELSE
(RecruitDTF / DistinctCount ({MWH_HR.REQ NUMBER}, {@STATus}) )
Here's the calculation formula, I need to deal with the circumstance where DistinctCount = 0. Any insight would be appreciated.
WhilePrintingRecords;
NumberVar RecruitDTF;
NumberVar DCCount := DistinctCount ({MWH_HR.REQ NUMBER}, {@STATus});
IF {@status} = "On Hold" Then
RecruitDTF := 0
ELSE IF {@status} = "Cancelled" Then
RecruitDTF := 0
ELSE IF DCCount = 0 Then
0
ELSE
(RecruitDTF / DistinctCount ({MWH_HR.REQ NUMBER}, {@STATus}) )