Can I just claim this is a requirements problem?
I mean, what does it mean to look at any specific date... wrt to a weekly goal?
I am fairly confused on your option 1 though... it's like you are saying the date slicer is not working? Are you using a separate calendar table?
Hi Scott,
The resulting table needs to sum up the hours worked, and then compare them against the target hours for the time period, and show the difference between the two.
To the answer to your question, no I'm not using a separate calendar table. If a softcopy of the spreadsheet is required, I can provide that (once I strip out sensitive information).
All examples use the data in the below table.
Example 1:
Employee enters the below entries.
If I select the date range 31/3 to the 6/4, the expected outcome is this employee to show Sum of Hours as 39.5 and the target as 40 with a difference of -0.5 hours. So if I select "Missing Time" as "No" then I should see this employee with an aggregated result for the week.
If I use Option 1, the report returns correctly.
If I use Option 2, the report returns this employee with a Sum of Hours Worked Per Day = 7.5, Sum of Target Hours Per Day = 8, and Difference = -0.5.
If I use Option 3, the report returns this employee with a Sum of Hours Worked Per Day = 7.5, Sum of Target Hours Per Day = 8, and Difference = -0.5.
Example 2:
Employee enters the below entries.
If I select the date range 1/4 only, the expected outcome is this employee to have Sum of Hours as 8 and the target as 8 with a difference of 0 hours. So if I select "Missing Time" as "No" then I should
not see this employee.
If I use Option 1, the report shows the employee because another date for this employee is flagged as missing time.
If I use Option 2, the report returns correctly.
If I use Option 3, the report returns correctly.
Example 3:
Employee enters the below entries.
If I select the date range 7/4 to the 13/4, the expected outcome is this employee to show Sum of Hours as 40 and the target as 40 with a difference of 0 hours. So if I select "Missing Time" as "No" then I should
not see this employee.
If I use Option 1, the report returns this employee with a Sum of Hours Worked Per Day = 40, Sum of Target Hours Per Day = 40, and Difference = 8.88178E-16.
If I use Option 2, the report returns this employee with a Sum of Hours Worked Per Day = 7, Sum of Target Hours Per Day = 8, and Difference = -1. This is because the employee did an extra hour on the Wednesday, and left early on the Friday.
If I use Option 3, the report returns this employee with a Sum of Hours Worked Per Day = 7, Sum of Target Hours Per Day = 8, and Difference = -1. This is because the employee did an extra hour on the Wednesday, and left early on the Friday.
Example 4:
Employee enters the below entries.
If I select the date range 14/4 to the 20/4 (same results if 21/4 to the 26/4 is selected), the expected outcome is this employee to show Sum of Hours as 40 and the target as 40 with a difference of 0 hours. So if I select "Missing Time" as "No" then I should
not see this employee.
If I use Option 1, the report returns this employee with a Sum of Hours Worked Per Day = 40, Sum of Target Hours Per Day = 40, and Difference = 0.
If I use Option 2, the report returns correctly.
If I use Option 3, the report returns correctly.
Example 5:
Employee enters the below entries.
If I select the date range 27/4 to the 30/4, the expected outcome is this employee to show Sum of Hours as 24 and the target as 24 with a difference of 0 hours. So if I select "Missing Time" as "No" then I should
not see this employee.
If I use Option 1, the report returns this employee with a Sum of Hours Worked Per Day = 24, Sum of Target Hours Per Day = 24, and Difference = 0.
If I use Option 2, the report returns correctly.
If I use Option 3, the report returns correctly.
Example 6:
Employee enters the below entries.
If I select the date range 31/3 to the 30/4, the expected outcome is this employee to show Sum of Hours as 183.5 and the target as 184 with a difference of -0.5 hours. So if I select "Missing Time" as "No" then I should see this employee with an aggregated result for the month.
If I use Option 1, the report returns correctly.
If I use Option 2, the report returns this employee with a Sum of Hours Worked Per Day = 14.5, Sum of Target Hours Per Day = 16, and Difference = -1.5. I don't know why.
If I use Option 3, the report returns this employee with a Sum of Hours Worked Per Day = 14.5, Sum of Target Hours Per Day = 16, and Difference = -1.5. I don't know why.
[TABLE="class: grid, width: 403"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]
Emp ID[/TD]
[TD]
Date[/TD]
[TD]
Hours[/TD]
[TD]
Project[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]31/03/2014[/TD]
[TD]4.5[/TD]
[TD]NZ1-30.83[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]31/03/2014[/TD]
[TD]0[/TD]
[TD]NZ1-01.01[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]31/03/2014[/TD]
[TD]1[/TD]
[TD]NZ1-30.83[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]31/03/2014[/TD]
[TD]2[/TD]
[TD]NZ1-10.10[/TD]
[/TR]
[T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