Find closest date
Find closest date
(OP)
Morning
My 1st post on here, so please be kind!
I am trying to find a way of pulling in data based on matching the closest lower date.
I have 2 tables:
Employee_Bookings that holds all the Time & Attendance of our employees and includes the following columns:
Emp_No
Date
Time_in
Time_out
Effective_Rate that includes the employee rates of pay and when that became effective and includes the follwoing columns:
Emp_No
Eff_Date
Rate
What I am trying to do is get the employees rate of pay at Employee_Bookings.Date by finding the closest lower Effective_Rate.Eff_Date
I hope that makes sense and someone will be able to point me in the correct direction
My 1st post on here, so please be kind!
I am trying to find a way of pulling in data based on matching the closest lower date.
I have 2 tables:
Employee_Bookings that holds all the Time & Attendance of our employees and includes the following columns:
Emp_No
Date
Time_in
Time_out
Effective_Rate that includes the employee rates of pay and when that became effective and includes the follwoing columns:
Emp_No
Eff_Date
Rate
What I am trying to do is get the employees rate of pay at Employee_Bookings.Date by finding the closest lower Effective_Rate.Eff_Date
I hope that makes sense and someone will be able to point me in the correct direction
RE: Find closest date
Then go to report->selection formula->Group and enter:
{Effective_Date.Eff_Date}}=maximum({Effective_Date.Eff_Date},{Employee_Bookings.Emp.No})
This will return only the row containing the most recent rate.
-LB