Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Red face Summarize by Average in Pivot Shows #Div/0!

Hello,
I have a helpdesk ticket call statistics pivot table that currently shows the hour of day along the vertical (column) axis and day of week on the horizontal (row) axis and correctly shows the counts of the calls for each hour\day of week cell in the body of the pivot table (I can send file if requested).

But instead of the counts, what I really need is to show the AVERAGE number of calls coming in for each hour\day of week, but when I try to change the 'Summarize by' option from Count to Average, ALL the cells in the body have a #DIV/0! in them? I would think this would happen for those hour\DoW combination that do not have any calls, but certainly not for ALL the cells?

I'm aware of the pivot table option of masking errors with other values, but this does me no good when the entire table is showing zero as it is in this case. I tried adding a column of 1's in the base data for every row and then summarize the pivot by that new column as an average, but all it did was give me 1's in every cell of the pivot table.

The data has a thousand or so rows having tickets spread over the entire year of 2010 at all hours of the day and day of week. A sampling of the data looks like:
Columns: TicketNo, OpenDateTime, DayOfWeek
Data:
123, 1/1/2010 1:10AM, Sunday
234, 1/1/2010 2:45PM, Monday
345, 1/5/2010 1:10AM, Wednesday
456, 1/7/2010 1:30AM, Sunday
...etc.

Any help or other approach to get the desired result would be greatly appreciated.

Cheers,
Maddog
Attached Files
File Type: zip CallFreqAvg_byDoWHour_FM.zip (53.2 KB, 168 views)
  #2   Report Post  
Junior Member
 
Posts: 2
Default

UPDATE:
In trying to figure out why the pivot was showing a low average number of 1's when using a count column of 1 to summmarize and average by, I changed the pivot to remove the hour side of it simply to get an average for tickets coming in on the days of the week only. I then stuck an abnormally large test value in one of the Count data row fields in place of a 1 and then I DID see the corresponding average value in the Pivot change. What I realized then was the pivot average calculation was simply adding up all the counts for the Mondays and then dividing it by the number of rows in the data that fit that criteria, and since the count values were all 1's the sum is always the same as the number of rows so the resulting average would ALWAYS be 1. This does me no good obviously.

So that got me to thinking there needs to be another type of grouping in the raw data so that the count column values are not always 1, like grouping by week number maybe and getting a total count of tickets for each day of the week for all the weeks of the year first, and then calculate the average across those groupings?

Quote:
Originally Posted by Maddogs View Post
Hello,
I have a helpdesk ticket call statistics pivot table that currently shows the hour of day along the vertical (column) axis and day of week on the horizontal (row) axis and correctly shows the counts of the calls for each hour\day of week cell in the body of the pivot table (I can send file if requested).

But instead of the counts, what I really need is to show the AVERAGE number of calls coming in for each hour\day of week, but when I try to change the 'Summarize by' option from Count to Average, ALL the cells in the body have a #DIV/0! in them? I would think this would happen for those hour\DoW combination that do not have any calls, but certainly not for ALL the cells?

I'm aware of the pivot table option of masking errors with other values, but this does me no good when the entire table is showing zero as it is in this case. I tried adding a column of 1's in the base data for every row and then summarize the pivot by that new column as an average, but all it did was give me 1's in every cell of the pivot table.

The data has a thousand or so rows having tickets spread over the entire year of 2010 at all hours of the day and day of week. A sampling of the data looks like:
Columns: TicketNo, OpenDateTime, DayOfWeek
Data:
123, 1/1/2010 1:10AM, Sunday
234, 1/1/2010 2:45PM, Monday
345, 1/5/2010 1:10AM, Wednesday
456, 1/7/2010 1:30AM, Sunday
...etc.

Any help or other approach to get the desired result would be greatly appreciated.

Cheers,
Maddog
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
pivot tables - totals different than the summarize function alberto Excel Discussion (Misc queries) 1 December 15th 09 06:55 PM
pivot tables - total different than the summarize function alberto Excel Discussion (Misc queries) 0 December 15th 09 06:15 PM
Pivot Chart which shows average line with below and above figures Env shah Charts and Charting in Excel 1 May 3rd 06 11:33 AM
Summarize times in a pivot table Mark@Marc Excel Worksheet Functions 1 October 16th 05 04:31 PM
Using Pivot Table Function to Summarize David Excel Discussion (Misc queries) 0 July 8th 05 04:46 AM


All times are GMT +1. The time now is 11:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"