Good morning,
The way our planning system is set up, it creates a brand new record for an employee if they move departments. The first record will have an effective end date on the date of the transfer and the second record will have an effective start date on the same day. Normally, if they do not move, the effective start date is just their start date. What's the easiest way to pull the latest effective start date for an employee based on their employee ID?
In the below example, Emp A changed departments, Emp B left the company, and Emp C is still at the company in the same department. The latest effective start date is 1/1/18 for Emp A
[TABLE="width: 500"]
<tbody>[TR]
[TD]Emp ID[/TD]
[TD]Start Date[/TD]
[TD]Term Date[/TD]
[TD]Effective Start Date[/TD]
[TD]Effective End Date[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Emp A
[/TD]
[TD]1/1/16[/TD]
[TD][/TD]
[TD]1/1/16[/TD]
[TD]12/31/17[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Emp B[/TD]
[TD]1/1/17[/TD]
[TD]12/1/17[/TD]
[TD]1/1/17[/TD]
[TD]12/1/17[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Emp C[/TD]
[TD]6/1/17[/TD]
[TD][/TD]
[TD]6/1/17[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Emp A[/TD]
[TD]1/1/16[/TD]
[TD][/TD]
[TD]1/1/18[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 811"]
<colgroup><col><col span="2"><col><col><col span="2"><col></colgroup><tbody></tbody>[/TABLE]
Thanks,
Rob
The way our planning system is set up, it creates a brand new record for an employee if they move departments. The first record will have an effective end date on the date of the transfer and the second record will have an effective start date on the same day. Normally, if they do not move, the effective start date is just their start date. What's the easiest way to pull the latest effective start date for an employee based on their employee ID?
In the below example, Emp A changed departments, Emp B left the company, and Emp C is still at the company in the same department. The latest effective start date is 1/1/18 for Emp A
[TABLE="width: 500"]
<tbody>[TR]
[TD]Emp ID[/TD]
[TD]Start Date[/TD]
[TD]Term Date[/TD]
[TD]Effective Start Date[/TD]
[TD]Effective End Date[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Emp A
[/TD]
[TD]1/1/16[/TD]
[TD][/TD]
[TD]1/1/16[/TD]
[TD]12/31/17[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Emp B[/TD]
[TD]1/1/17[/TD]
[TD]12/1/17[/TD]
[TD]1/1/17[/TD]
[TD]12/1/17[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Emp C[/TD]
[TD]6/1/17[/TD]
[TD][/TD]
[TD]6/1/17[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Emp A[/TD]
[TD]1/1/16[/TD]
[TD][/TD]
[TD]1/1/18[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 811"]
<colgroup><col><col span="2"><col><col><col span="2"><col></colgroup><tbody></tbody>[/TABLE]
Thanks,
Rob