FireGeek21
Technical User
I am missing something here and have been looking at this far too long to see what I am missing. I need the oldest effective date for the most current job. The bulk of the report is working just fine except for a few key people who have information such as the following:
EMPLOYEE EFF_DATE JOBCODE
00000001 01/01/2010 123456
00000001 03/30/2008 123456 (need this effective date)
00000001 05/02/2005 456789
00000002 12/18/2009 963852
00000002 04/13/2008 963852 (need this effective date)
00000002 04/04/2004 321654
Everyone else, I need the Maximum(EFF_DATE) - which is working fine.
I am using Selection Formula -> Groups as {HRHISTORY.BEG_DATE} = Maximum({HRHISTORY.BEG_DATE}, {HRHISTORY.EMPLOYEE})
I also have a Formula Field EFF_DT as IF {HRHISTORY.A_VALUE} = Previous({HRHISTORY.A_VALUE}) THEN Previous({@BEG_DT}) ELSE Date({HRHISTORY.BEG_DATE})
I have also tried the EFF_DT Formula Field with the Next function.
@BEG_DT is a Formula Field as Date({HRHISTORY.BEG_DATE})
Grouping on EMPLOYEE and Sorting on EMPLOYEE and then EFF_DT.
Any thoughts? Let me know if you need more information.
THANKS!!
rsgeek
RSGeek
(currently using Crystal Reports XI with Lawson 8.03)
EMPLOYEE EFF_DATE JOBCODE
00000001 01/01/2010 123456
00000001 03/30/2008 123456 (need this effective date)
00000001 05/02/2005 456789
00000002 12/18/2009 963852
00000002 04/13/2008 963852 (need this effective date)
00000002 04/04/2004 321654
Everyone else, I need the Maximum(EFF_DATE) - which is working fine.
I am using Selection Formula -> Groups as {HRHISTORY.BEG_DATE} = Maximum({HRHISTORY.BEG_DATE}, {HRHISTORY.EMPLOYEE})
I also have a Formula Field EFF_DT as IF {HRHISTORY.A_VALUE} = Previous({HRHISTORY.A_VALUE}) THEN Previous({@BEG_DT}) ELSE Date({HRHISTORY.BEG_DATE})
I have also tried the EFF_DT Formula Field with the Next function.
@BEG_DT is a Formula Field as Date({HRHISTORY.BEG_DATE})
Grouping on EMPLOYEE and Sorting on EMPLOYEE and then EFF_DT.
Any thoughts? Let me know if you need more information.
THANKS!!
rsgeek
RSGeek
(currently using Crystal Reports XI with Lawson 8.03)