D
David J.
Okay, I tried reading the other average posts, and I still can't figure out
what to do. The database I am using tracks when various lots were received,
when the lot went to department A, and when it left department A. Therefore,
the table has a lot number, and 3 dates.
Lot# DateLotRecvd DateLotInDeptA DateLotOutDeptA
There are multiple lots for each month. I need to know the Cycle Time for In
to Out. That is easy, [tblMain.DateLotOutDeptA]-[tblMain.DateLotInDeptA].
Although I know this, I need to calculate the average of the Cycle Times for
each month. The month is based off of the DateLotInDeptA.
For example...
Lot# DateLotRecvd DateLotInDeptA DateLotOutDeptA Cycle Time
123 03-May-07 06-May-07 10-May-07 4
456 03-May-07 10-May-07 12-May-07 2
567 03-May-07 12-May-07 28-May-07 16
789 03-May-07 20-May-07 30-May-07 10
157 03-May-07 28-May-07 2-Jun-07 5
834 03-May-07 08-Jun-07 13-Jun-07 5
Now, from this data I would need to calculate the the average of the lead
times for the month pertaining to DateLotInDeptA. This means the all of the
cycle times except the last one, as the DateLotInDeptA was in June.
So, my question is 2 parts. I need to be able to sum up the Cycle Times for
a specific month, then take the average of those times by dividing the number
of lots per that month. Then I will need to display a query that will show
the month and the average cycle time, which would look like this...
Month AvgCycleTime
Feb X
Mar Y
Apr Z
May A
Jun B
I hope this makes sense. I literally have no clue how to get this solution.
I can get the cycle times individually, but not get the averages or display
averages per a given month. If you need more explanations, let me know.
Thanks a ton for any help.
what to do. The database I am using tracks when various lots were received,
when the lot went to department A, and when it left department A. Therefore,
the table has a lot number, and 3 dates.
Lot# DateLotRecvd DateLotInDeptA DateLotOutDeptA
There are multiple lots for each month. I need to know the Cycle Time for In
to Out. That is easy, [tblMain.DateLotOutDeptA]-[tblMain.DateLotInDeptA].
Although I know this, I need to calculate the average of the Cycle Times for
each month. The month is based off of the DateLotInDeptA.
For example...
Lot# DateLotRecvd DateLotInDeptA DateLotOutDeptA Cycle Time
123 03-May-07 06-May-07 10-May-07 4
456 03-May-07 10-May-07 12-May-07 2
567 03-May-07 12-May-07 28-May-07 16
789 03-May-07 20-May-07 30-May-07 10
157 03-May-07 28-May-07 2-Jun-07 5
834 03-May-07 08-Jun-07 13-Jun-07 5
Now, from this data I would need to calculate the the average of the lead
times for the month pertaining to DateLotInDeptA. This means the all of the
cycle times except the last one, as the DateLotInDeptA was in June.
So, my question is 2 parts. I need to be able to sum up the Cycle Times for
a specific month, then take the average of those times by dividing the number
of lots per that month. Then I will need to display a query that will show
the month and the average cycle time, which would look like this...
Month AvgCycleTime
Feb X
Mar Y
Apr Z
May A
Jun B
I hope this makes sense. I literally have no clue how to get this solution.
I can get the cycle times individually, but not get the averages or display
averages per a given month. If you need more explanations, let me know.
Thanks a ton for any help.