MasterRacker
Active member
I have a flat table with the following fields relating to phone calls:
Dept, User, Direction, Duration
where Direction can be Inbound or Outbound
My desired end result is a single row per user showing:
Dept, User, Total Inbound, Total Inbound Time, Avg. Inbound Duration, Total Outbound, Total Outbound Time, Avg. Outbound Duration
Think it would be more useful down the road, I created 2 summary queries, 1 for each direction showing:
Dept, User, Total Inbound, Total Inbound Time, Avg. Inbound Duration
and
Dept, User, Total Outbound, Total Outbound Time, Avg. Outbound Duration
Both of these work, but I'm suffering a block on how to combine them into a single overall summary. I can't simply join across both without losing records, since any given user may not have calls in both directions in a given time period. I was expecting this to be trivial,but I must be missing something that's staring me in the face.
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]
Dept, User, Direction, Duration
where Direction can be Inbound or Outbound
My desired end result is a single row per user showing:
Dept, User, Total Inbound, Total Inbound Time, Avg. Inbound Duration, Total Outbound, Total Outbound Time, Avg. Outbound Duration
Think it would be more useful down the road, I created 2 summary queries, 1 for each direction showing:
Dept, User, Total Inbound, Total Inbound Time, Avg. Inbound Duration
and
Dept, User, Total Outbound, Total Outbound Time, Avg. Outbound Duration
Both of these work, but I'm suffering a block on how to combine them into a single overall summary. I can't simply join across both without losing records, since any given user may not have calls in both directions in a given time period. I was expecting this to be trivial,but I must be missing something that's staring me in the face.
Jeff
[small][purple]It's never too early to begin preparing for [/purple]International Talk Like a Pirate Day
"The software I buy sucks, The software I write sucks. It's time to give up and have a beer..." - Me[/small]