I have a table that has these fields: EMPS, DATE, START_TIME, END_TIME, TASK_ID.
I need to have a report that calculates the Length of time from START to END (was that obvious) and give me a total of all ID's for a given day for a given emp.
Easy enough simply using the SUM calc on the Report Wizard. My problem is that some of the IDs need to be subtracted from the total.
I have a situation in which we track total work day time and subtract out the time an agent was not logged in. But in some instances the agent is replaced by another agent and goes on break or home or lunch. When this happens I need to subtract the time form the Logged In time.
More Exlanation:
WE have a call center in which all agents time logged in is tracked and reported as a total amount of time for the period (for my purposes a 24 day). If an agent is logged in all day (minus sceduled breaks) they should match up exactly with the time they were scheduled to be logged in (a constant). When the agent takes time during the day to do other tasks that do not require being logged in, this time must be added to the logged in time to match their scheduled time (so we know where they were). When off phone time happens the agent fills out a form with Start and End times as well as an ID for what they were doing. I have successfully built the DB to calculate the difference in the Start/End times and add all events together for the day (the simple Report Wizard way). I can then set up a report to add this total to the Logged In time as reported to the system and give me a total to match to the Scheduled Time (the constant) to see if there are any problems with people being away from their position for unaccounted time.
The problem arises when One agent takes over for another. When this happens the person who left is logged in but gone on some other duty or break. They are also being shown as logged in by the system. My problem is how to subtract the time for the rest of the call that they were not there but logged as there. When the agent leaves they fill in the start time and when the second agent finishes they fill in the end time. With both agents names I can add the second agents time into an Event but am stumped on how to subtract the first agenst time from Loggin In time.
I can either subtract the time from the Logged In time (not under my control) or subtract it from the time calculated in the report before I subtract that from the logged in time (effectively getting the same result). The problem is how do I get the report to add some IDs and subtract others? There are really only three IDs that need to be done negatively so a Code solution would not be out of the question. Dos this make more sense? I know this sounds like a query but god knows I don't know where to start on the negative calculations.
I need to have a report that calculates the Length of time from START to END (was that obvious) and give me a total of all ID's for a given day for a given emp.
Easy enough simply using the SUM calc on the Report Wizard. My problem is that some of the IDs need to be subtracted from the total.
I have a situation in which we track total work day time and subtract out the time an agent was not logged in. But in some instances the agent is replaced by another agent and goes on break or home or lunch. When this happens I need to subtract the time form the Logged In time.
More Exlanation:
WE have a call center in which all agents time logged in is tracked and reported as a total amount of time for the period (for my purposes a 24 day). If an agent is logged in all day (minus sceduled breaks) they should match up exactly with the time they were scheduled to be logged in (a constant). When the agent takes time during the day to do other tasks that do not require being logged in, this time must be added to the logged in time to match their scheduled time (so we know where they were). When off phone time happens the agent fills out a form with Start and End times as well as an ID for what they were doing. I have successfully built the DB to calculate the difference in the Start/End times and add all events together for the day (the simple Report Wizard way). I can then set up a report to add this total to the Logged In time as reported to the system and give me a total to match to the Scheduled Time (the constant) to see if there are any problems with people being away from their position for unaccounted time.
The problem arises when One agent takes over for another. When this happens the person who left is logged in but gone on some other duty or break. They are also being shown as logged in by the system. My problem is how to subtract the time for the rest of the call that they were not there but logged as there. When the agent leaves they fill in the start time and when the second agent finishes they fill in the end time. With both agents names I can add the second agents time into an Event but am stumped on how to subtract the first agenst time from Loggin In time.
I can either subtract the time from the Logged In time (not under my control) or subtract it from the time calculated in the report before I subtract that from the logged in time (effectively getting the same result). The problem is how do I get the report to add some IDs and subtract others? There are really only three IDs that need to be done negatively so a Code solution would not be out of the question. Dos this make more sense? I know this sounds like a query but god knows I don't know where to start on the negative calculations.