We’re trying to calculate the average number of tasks per day for each employee. The goal is to measure productivity of employees. This needs to be measured everyday.
<o> </o>
So our goal is to report it as follows (for example);
<o> </o>
The average tasks per day over the last 14 days for Mike was 3.79.
Mikes average was 4.03 for the last 90 days. But this must only take into account the day on which they actually completed at least one task so that days with zero tasks are not measured into their average because they didn't work that day.
<o> </o>
The data is as follows (not actual data, example only);
<TBODY>
</TBODY><o> </o>
Notice that on any given day, an employee might do any number of tasks or none. But if they do none, then it should not be included in the calculation of their average because they didn't work that day. The dates are always in ascending order. In the above example, Cindy did only two tasks on 08-01-12 while Andy only did one. But Andy's 90 day average might be 2.89 tasks per day.
<o> </o>
Kind Thanks,
Eddie
<o> </o>
So our goal is to report it as follows (for example);
<o> </o>
The average tasks per day over the last 14 days for Mike was 3.79.
Mikes average was 4.03 for the last 90 days. But this must only take into account the day on which they actually completed at least one task so that days with zero tasks are not measured into their average because they didn't work that day.
<o> </o>
The data is as follows (not actual data, example only);
<o> </o> | A<o></o> | B<o></o> | C<o></o> |
1<o></o> | Name<o></o> | Date<o></o> | Task<o></o> |
2<o></o> | Mike<o></o> | 8/1/2012<o></o> | billing<o></o> |
3<o></o> | Cindy<o></o> | 8/1/2012<o></o> | payments<o></o> |
4<o></o> | Andy<o></o> | 8/1/2012<o></o> | billing<o></o> |
5<o></o> | Mike<o></o> | 8/1/2012<o></o> | billing<o></o> |
6<o></o> | Mike<o></o> | 8/1/2012<o></o> | modify<o></o> |
7<o></o> | Cindy<o></o> | 8/1/2012<o></o> | modify<o></o> |
8<o></o> | Cindy<o></o> | 8/2/2012<o></o> | payments<o></o> |
9<o></o> | Andy<o></o> | 8/2/2012<o></o> | payments<o></o> |
10<o></o> | Cindy<o></o> | 8/2/2012<o></o> | modify<o></o> |
<TBODY>
</TBODY>
Notice that on any given day, an employee might do any number of tasks or none. But if they do none, then it should not be included in the calculation of their average because they didn't work that day. The dates are always in ascending order. In the above example, Cindy did only two tasks on 08-01-12 while Andy only did one. But Andy's 90 day average might be 2.89 tasks per day.
<o> </o>
Kind Thanks,
Eddie