Ok, I'm going to give this my best shot in explaining the help I DESPERATELY need. First, let me say, I'm not an expert at Crystal so please bare with me and I hope someone will help me....this will be somewhat lengthy. I use Crystal 9
Here is what I need my report to end up looking like.
EmpName Termination Date Event Type
Here is what is happening.
Let's say an employee terminates twice in one year. When a employee terms the new term date is entered into our KRONOS system along with an event (event describes why they termed, whether it was Resignation or Discharge, etc.
Now, when I go into Crystal to pull my data from the tables, I pull Employee Name, Termination Date from one table and Event Code from another table (these are linked). What I end up getting from those employees that termed twice in one year is this:
Name: Term Date: Event Code
Ima Test 6/01/06 1 Resignation
Ima Test 6/01/06 2 Discharge
This may look right, but I only want to see the latest and greatest term date. Lets say the event code 1 Resignation (shown above) was really for the first time the employee termed in the year and the term date in the KRONOS system was 01/01/06 but the new term date 06/01/06 overrides the old term date but puts the old event code with it.
I need to somehow show the employee with the most recent term date with the correct event code. Now I have 10 differant event codes and when I do a SELECT EXPERT, to select my 10 codes that appears to be the reason it pulls in duplicates because each time the employee termed they showed to have differant EVENT Codes but the New term date.
Does this make sense? Here is what is in my Reports Record selection.
{TMC_EmployeePay_Job_Curr.EmployeeStatus} = "Terminated" and
{TMC_EmployeePay_Job_Curr.TerminationDate} = {?Term Date} and
{TMC_EmployeePay_Job_Curr.PayStatusCompensationType} = "BASE" and
{EVENT_CODES.EventCodeToEffectDate} = DateTime (3000, 01, 01, 00, 00, 00) and
{EVENT_CODES.EventCode} in ["1 RESIGNATION", "2 DISCHARGE", "3 LAY OFF", "4 RETIREMENT", "5 TEMPORARY/CONTRACT", "6 ON CALL/INACTIVE PRN", "7 DECEASED", "8 BUSINESS/FACILITY CLOSU", "9 COMPLETED INTERN OR RES", "10 RIF"]
Thanks and I hope someone can help me, because I can't figure how how to write a formula on this.
Here is what I need my report to end up looking like.
EmpName Termination Date Event Type
Here is what is happening.
Let's say an employee terminates twice in one year. When a employee terms the new term date is entered into our KRONOS system along with an event (event describes why they termed, whether it was Resignation or Discharge, etc.
Now, when I go into Crystal to pull my data from the tables, I pull Employee Name, Termination Date from one table and Event Code from another table (these are linked). What I end up getting from those employees that termed twice in one year is this:
Name: Term Date: Event Code
Ima Test 6/01/06 1 Resignation
Ima Test 6/01/06 2 Discharge
This may look right, but I only want to see the latest and greatest term date. Lets say the event code 1 Resignation (shown above) was really for the first time the employee termed in the year and the term date in the KRONOS system was 01/01/06 but the new term date 06/01/06 overrides the old term date but puts the old event code with it.
I need to somehow show the employee with the most recent term date with the correct event code. Now I have 10 differant event codes and when I do a SELECT EXPERT, to select my 10 codes that appears to be the reason it pulls in duplicates because each time the employee termed they showed to have differant EVENT Codes but the New term date.
Does this make sense? Here is what is in my Reports Record selection.
{TMC_EmployeePay_Job_Curr.EmployeeStatus} = "Terminated" and
{TMC_EmployeePay_Job_Curr.TerminationDate} = {?Term Date} and
{TMC_EmployeePay_Job_Curr.PayStatusCompensationType} = "BASE" and
{EVENT_CODES.EventCodeToEffectDate} = DateTime (3000, 01, 01, 00, 00, 00) and
{EVENT_CODES.EventCode} in ["1 RESIGNATION", "2 DISCHARGE", "3 LAY OFF", "4 RETIREMENT", "5 TEMPORARY/CONTRACT", "6 ON CALL/INACTIVE PRN", "7 DECEASED", "8 BUSINESS/FACILITY CLOSU", "9 COMPLETED INTERN OR RES", "10 RIF"]
Thanks and I hope someone can help me, because I can't figure how how to write a formula on this.