HI, I'm using Crystal Reports 2008.
My goal: To display in separate data fields, the minimim pay rate, mid pay rate, and max pay rate for each employee.
Table structure: Employee's are in a PAEMPPOS table with a "schedule" and "Pay Grade". Then there is another table (PRSAGDTL) that tracks the rates for each schedule and pay grade. Each schedule and pay grade has 3 pay rates. (minimum, middle, and max). The table also stores all the effective dates each time the rates change. So the PRSAGDTL table looks like this:
| SCHEDULE |
EFFECT_DATE |
PAY_GRADE |
PAY_RATE |
| Non Contract |
01-Jan-50 |
306 |
10 |
| Non Contract |
01-Jan-50 |
306 |
15 |
| Non Contract |
01-Jan-50 |
306 |
20 |
| Non Contract |
01-Mar-11 |
306 |
10.5 |
| Non Contract |
01-Mar-11 |
306 |
15.5 |
| Non Contract |
01-Mar-11 |
306 |
20.5 |
My goal: to display the minimum, mid, and pax amounts in separate data fields for the max effective date for each employee like this:
| Employee |
Min Rate |
Mid Rate |
Max Rate |
| 12345 |
10.5 |
15.5 |
20.5 |
I have a formula now trying to pull the min pay rate for the max effective date, but it's pulling in the min pay rate for the min effective date:
minimum(({vw_PRSAGDTL.PAY_RATE}),({vw_PAEMPPOS.PAY_GRADE}))
How can I change this formula to pull the min pay rate for the max effective date per schedule/Pay grade? All suggestions welcome.
Edited by thummel1 - 13 Mar 2015 at 4:48am