greekpatriott
Technical User
Hello, Happy Christmass to everyone.
I have a question of using a module function in a query:
Performance Ratio:
E(t): Earned man hours at time t
A(t): Actual Man hours expended at time t
E(t-1): Earned Mhrs at time t-1 (previous month)
A(t-1): Actual Man hours expended at time t-1
If I have a query showing the months and the corresponding E(t) and A(t). How can I find the corresponding E(t-1) and A(t-1) so that I perform this calculation:
ratio = (E(t)-E(t-1))/(A(t)-A(t-1))
example
Month(mm/dd/yyyy) E(t) A(t) E(t-1) A(t-1)
1/01/2004 50 60 0 0
02/01/2004 70 65 50 60
03/01/2004 60 50 70 65
Cheers
I have a question of using a module function in a query:
Performance Ratio:
E(t): Earned man hours at time t
A(t): Actual Man hours expended at time t
E(t-1): Earned Mhrs at time t-1 (previous month)
A(t-1): Actual Man hours expended at time t-1
If I have a query showing the months and the corresponding E(t) and A(t). How can I find the corresponding E(t-1) and A(t-1) so that I perform this calculation:
ratio = (E(t)-E(t-1))/(A(t)-A(t-1))
example
Month(mm/dd/yyyy) E(t) A(t) E(t-1) A(t-1)
1/01/2004 50 60 0 0
02/01/2004 70 65 50 60
03/01/2004 60 50 70 65
Cheers