Thanks to LBASS i have the following formula for calculating the average number of agents for each time frame.
//{@accum} to be placed in the {@timeint} group footer:
whileprintingrecords;
numbervar int12to7;
numbervar int7to5;
numbervar cnt12to7;
numbervar cnt7to5;
if {@timeint} = "12:00 to 6:59" then (
int12to7 := int12to7 + distinctcount({table.agent},{@timeint});
cnt12to7 := cnt12to7 + 1
);
if {@timeint} = "7:00 to 4:59 PM" then (
int7to5 := int7to5 + distinctcount({table.agent},{@timeint});
cnt7to5 := cnt7to5 + 1
);
Then in the report footer, create formulas like this:
//{@ave12to7}:
whileprintingrecords;
numbervar int12to7;
numbervar cnt12to7;
int12to7/cnt12to7
//{@ave7to5}:
whileprintingrecords;
numbervar int7to5;
numbervar cnt7to5;
int7to5/cnt7to5
What i am looking for now is i have a group where it shows each hour on the left, and across the top is each day of the week. This will show me the total and average number of calls for each day of hte week broken down by hour for a specific date range. I want to add another column that shows the average number of calls per agent based on the data for each day of the week. The above formula gives me the average agents for each time frame but how do i create a formula that shows the average number of agents for each time frame as well as for each day of the week. For example between 12am and 1am on Mondays there is an average of 11 calls, but i want to see the average number of agents during that time frame so that i can take those calls and divide it by the agents to get how many calls per agent.
//{@accum} to be placed in the {@timeint} group footer:
whileprintingrecords;
numbervar int12to7;
numbervar int7to5;
numbervar cnt12to7;
numbervar cnt7to5;
if {@timeint} = "12:00 to 6:59" then (
int12to7 := int12to7 + distinctcount({table.agent},{@timeint});
cnt12to7 := cnt12to7 + 1
);
if {@timeint} = "7:00 to 4:59 PM" then (
int7to5 := int7to5 + distinctcount({table.agent},{@timeint});
cnt7to5 := cnt7to5 + 1
);
Then in the report footer, create formulas like this:
//{@ave12to7}:
whileprintingrecords;
numbervar int12to7;
numbervar cnt12to7;
int12to7/cnt12to7
//{@ave7to5}:
whileprintingrecords;
numbervar int7to5;
numbervar cnt7to5;
int7to5/cnt7to5
What i am looking for now is i have a group where it shows each hour on the left, and across the top is each day of the week. This will show me the total and average number of calls for each day of hte week broken down by hour for a specific date range. I want to add another column that shows the average number of calls per agent based on the data for each day of the week. The above formula gives me the average agents for each time frame but how do i create a formula that shows the average number of agents for each time frame as well as for each day of the week. For example between 12am and 1am on Mondays there is an average of 11 calls, but i want to see the average number of agents during that time frame so that i can take those calls and divide it by the agents to get how many calls per agent.