lhendrickson
Technical User
We are on Crystal version 9.0. I am working on a report for our HR department. They have a need to see the most recent raise for each employee. Due to multiple tables being involved I had a number of duplicate records. I have narrowed my dataset down quite a bit using the following formulas:
@Concatenate Fields =
{DEPTCODE.NAME}&{EMPLOYEE.ADJ_HIRE_DATE}&{EMPLOYEE.EMPLOYEE}&{EMPLOYEE.EMP_STATUS}&{EMPLOYEE.FIRST_NAME}&{EMPLOYEE.LAST_NAME}&{EMPLOYEE.MIDDLE_INIT}&{EMPLOYEE.PAY_RATE}&{EMPLOYEE.PROCESS_LEVEL}&{EMPLOYEE.SALARY_CLASS}&{HRSUPER.DESCRIPTION}&{JOBCODE.DESCRIPTION}&{PRRATEHIST.DATE_STAMP}&{PRRATEHIST.PAY_RATE}
*****Nothing more than concatenating all the fields on the report*****
@Suppress Duplicates =
IF {PRRATEHIST.PAY_RATE}={@Current Pay Rate}then "Flag"
Else IF Previous ({@Concatenate Fields})={@Concatenate Fields}then "Flag" else "No Flag"
in conjunction with this formula in the suppress formatting area of the details section=
IF{@Suppress Duplicates}="Flag" then True
I have the report sorted on {EMPLOYEE.LAST_NAME} and {PRRATEHIST.DATE_STAMP} <--Last name sorting being a requirement of the HR department
None of the above formulas addressed the following problem: I still have some records of an employee receiving more than one raise. I researched the forum and read multiple references of the Maximum command to be used on the Date field. I also read that the suppressed records are still there, just not being printed, so I am unsure on how to incorporate the Maximum command with the formulas I already have in place --- or is there a better solution?
Any and all solutions you can provide will be appreciated. Please let me know if I have not provided enough data or if my data is unclear.
Thanks!
LHendrickson