C
chantal.lyn
Hi there - I hope someone can help - I don't use loops much, so I'm
stumped on something which is probably very basic and straightforward.
I've got a set of data covering a 3-month period, provided by BT on
calls made to a helpline number. The fields call all the usual stuff -
encrypted IDs for each number, date and time of call, if it was
answered or diverted to a busy message, length of call. I need to
produce some stats on breakdown of lost (unanswered) calls vs answered
calls per caller. In addition to the source table, I've created a
ztblMain which contains unique phone 'numbers', and a count of calls
answered and calls lost, and another two ztbls of the phone numbers and
date/times their calls were lost or answered.
As it's a popular helpline, a lot of callers call more than once in
this period (the most extreme was one number calling 726 times in this
timeframe, getting through 381 times).
So as I need to calculate an average of how many times callers try the
helpline before they answer, I figure what I need is a loop to step
through the records and find the next available date/time (merged into
one field) after each answered call (I've created Lost and Unanswered
yes/no fields) per phone number - my idea was to use the ztbl for
answered call date/times as a source table for this, populate a field
with the initial call in the series, and then do a count on the calls
between the two. I just have absolutely no idea how to go about it - as
I said, I rarely work with loops - can anyone help?
Huge huge thanks if you can!!
Chantal
stumped on something which is probably very basic and straightforward.
I've got a set of data covering a 3-month period, provided by BT on
calls made to a helpline number. The fields call all the usual stuff -
encrypted IDs for each number, date and time of call, if it was
answered or diverted to a busy message, length of call. I need to
produce some stats on breakdown of lost (unanswered) calls vs answered
calls per caller. In addition to the source table, I've created a
ztblMain which contains unique phone 'numbers', and a count of calls
answered and calls lost, and another two ztbls of the phone numbers and
date/times their calls were lost or answered.
As it's a popular helpline, a lot of callers call more than once in
this period (the most extreme was one number calling 726 times in this
timeframe, getting through 381 times).
So as I need to calculate an average of how many times callers try the
helpline before they answer, I figure what I need is a loop to step
through the records and find the next available date/time (merged into
one field) after each answered call (I've created Lost and Unanswered
yes/no fields) per phone number - my idea was to use the ztbl for
answered call date/times as a source table for this, populate a field
with the initial call in the series, and then do a count on the calls
between the two. I just have absolutely no idea how to go about it - as
I said, I rarely work with loops - can anyone help?
Huge huge thanks if you can!!
Chantal