BradCustom
IS-IT--Management
Hi all,
I'm writing a report using Crystal 2008 and I need some help with a Count/Distinct Count formula.
I'm trying to count all of the records that match the criteria below. There will be three different count formulas; one for each criteria.
Below are the three criterias:
Second criteria:
Third criteria would be to count all remaining records that don't meet the first two conditions.
The report has three Groups and three tables which are listed below:
G1 Department
G2 Work Center
G3 Scheduled Start Date
Tables:
T1 Job
T2 Job Operation
T3 Work Center
Thanks for your help and please let me know if you need more information.
Thanks!!
I'm writing a report using Crystal 2008 and I need some help with a Count/Distinct Count formula.
I'm trying to count all of the records that match the criteria below. There will be three different count formulas; one for each criteria.
Below are the three criterias:
Code:
if {@SchDayRem}<0 or
if (datediff ("d",{@CurrentDate},{Job_Operation.Sched_Start})) <0 and {Job_Operation.Status}in "S" or "O"
Second criteria:
Code:
if {@ProdDayRem}>0 and (datediff ("d",{@CurrentDate},{Job_Operation.Sched_End}))<({@ProdDayRem})
Third criteria would be to count all remaining records that don't meet the first two conditions.
The report has three Groups and three tables which are listed below:
G1 Department
G2 Work Center
G3 Scheduled Start Date
Tables:
T1 Job
T2 Job Operation
T3 Work Center
Thanks for your help and please let me know if you need more information.
Thanks!!