I have a fairly simple pivot table which shows call center data in a very useful and intuitive way for managers. Below is the sum of the number of calls for a given hour and day of the week in March. What I need to show is the average of the calls received for a given hour & weekday (word problem: "how many calls did we average for the 9:00 - 9:59 hour for all Mondays in March?"). I can and have done this with formulas, but I'm at a loss as to how it could be done with a pivot table, and I'd like to use a pivot table if possible, for speed and flexibility.
My source data looks like this, which is how I'm able to show the "hours" in column A like that.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][TABLE="width: 88"]
<tbody>[TR]
[TD="class: xl65, width: 88"]ACD Name[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 75"]
<tbody>[TR]
[TD="class: xl65, width: 75"]Agent[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 76"]
<tbody>[TR]
[TD="class: xl65, width: 76"]Call type[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 148"]
<tbody>[TR]
[TD="class: xl65, width: 148"]Start Time[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 100"]
<tbody>[TR]
[TD="class: xl65, width: 100"]End Time[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 134"]
<tbody>[TR]
[TD="class: xl65, width: 134"]Called/Calling No.[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 75"]
<tbody>[TR]
[TD="class: xl65, width: 75"]ACD DID[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 99"]
<tbody>[TR]
[TD="class: xl65, width: 99"]WaitTime(s)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 98"]
<tbody>[TR]
[TD="class: xl65, width: 98"]HoldTime(s)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94"]TalkTime(s)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 75"]
<tbody>[TR]
[TD="class: xl65, width: 75"]Date[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 62"]
<tbody>[TR]
[TD="class: xl65, width: 62"]Hour[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 62"]
<tbody>[TR]
[TD="class: xl65, width: 62"]Day[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Month[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 85"]
<tbody>[TR]
[TD="class: xl65, width: 85"]Call Week[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 76"]
<tbody>[TR]
[TD="class: xl65, width: 76"]Call Year[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]Support Queue[/TD]
[TD]Bob Lastname[/TD]
[TD]Inbound[/TD]
[TD]1/1/2018 7:01:52 AM[/TD]
[TD]1/1/2018 7:01:53 AM[/TD]
[TD]123-456-7890[/TD]
[TD]N/A[/TD]
[TD]00:00:00[/TD]
[TD]00:00:00[/TD]
[TD]00:00:01[/TD]
[TD]=INT(TEXT(D2, "MM/DD/YYYY"))[/TD]
[TD]=(TEXT(D2, "hh"))+0[/TD]
[TD]=TEXT(K2, "DDD")[/TD]
[TD]=TEXT(D2, "mmm")[/TD]
[TD]=WEEKNUM(D2, 21)[/TD]
[TD]=YEAR(K2)[/TD]
[/TR]
</tbody>[/TABLE]
I think what I need to do is create a "Custom measure" for my data set, but I'm stuck there. Any help would be appreciated.
Thanks,
Andy
My source data looks like this, which is how I'm able to show the "hours" in column A like that.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][TABLE="width: 88"]
<tbody>[TR]
[TD="class: xl65, width: 88"]ACD Name[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 75"]
<tbody>[TR]
[TD="class: xl65, width: 75"]Agent[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 76"]
<tbody>[TR]
[TD="class: xl65, width: 76"]Call type[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 148"]
<tbody>[TR]
[TD="class: xl65, width: 148"]Start Time[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 100"]
<tbody>[TR]
[TD="class: xl65, width: 100"]End Time[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 134"]
<tbody>[TR]
[TD="class: xl65, width: 134"]Called/Calling No.[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 75"]
<tbody>[TR]
[TD="class: xl65, width: 75"]ACD DID[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 99"]
<tbody>[TR]
[TD="class: xl65, width: 99"]WaitTime(s)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 98"]
<tbody>[TR]
[TD="class: xl65, width: 98"]HoldTime(s)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 94"]
<tbody>[TR]
[TD="class: xl65, width: 94"]TalkTime(s)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 75"]
<tbody>[TR]
[TD="class: xl65, width: 75"]Date[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 62"]
<tbody>[TR]
[TD="class: xl65, width: 62"]Hour[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 62"]
<tbody>[TR]
[TD="class: xl65, width: 62"]Day[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"]Month[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 85"]
<tbody>[TR]
[TD="class: xl65, width: 85"]Call Week[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 76"]
<tbody>[TR]
[TD="class: xl65, width: 76"]Call Year[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]Support Queue[/TD]
[TD]Bob Lastname[/TD]
[TD]Inbound[/TD]
[TD]1/1/2018 7:01:52 AM[/TD]
[TD]1/1/2018 7:01:53 AM[/TD]
[TD]123-456-7890[/TD]
[TD]N/A[/TD]
[TD]00:00:00[/TD]
[TD]00:00:00[/TD]
[TD]00:00:01[/TD]
[TD]=INT(TEXT(D2, "MM/DD/YYYY"))[/TD]
[TD]=(TEXT(D2, "hh"))+0[/TD]
[TD]=TEXT(K2, "DDD")[/TD]
[TD]=TEXT(D2, "mmm")[/TD]
[TD]=WEEKNUM(D2, 21)[/TD]
[TD]=YEAR(K2)[/TD]
[/TR]
</tbody>[/TABLE]
I think what I need to do is create a "Custom measure" for my data set, but I'm stuck there. Any help would be appreciated.
Thanks,
Andy