Excel 2007 pivot table does not aggregate properly

Posted by Patrick on Super User See other posts from Super User or by Patrick
Published on 2011-03-03T16:46:17Z Indexed on 2011/03/06 16:12 UTC
Read the original article Hit count: 308

I am using a an excel pivot table to summarize some data and just found a problem. The problem deals with how aggregate values are calculated. Let's say I have a table of data with three columns: Name, Date, Value. If I create a table where Name and then Date are used as Row Labels and Value is the aggregate value, ie Average. The pivot table will look something like this:

+John             .3450 
   5/14/2010       1.234 
   5/15/2010       3.450 
   5/16/2010       -3.25

What I think should be happening here is that the values for each date are averaged and then those values are averaged to come up with the value in the same row as the Name, John. But that is not what it does. It takes the average for each date, which it shows across from the date, but then instead of taking the average of those numbers, it actually uses the raw data and computes the average for all of John's values. It should show the average of the daily averages to correspond with the tree hierarchy, but instead just shows me the average for all of John's values. It essential will only aggregate at one level, but visually creates sub levels that it is not using. Does anyone know how to change this or understand by what logic this makes sense? Why would I create any sub groupings if I cannot compute aggregates on them?

© Super User or respective owner

Related posts about microsoft-excel

Related posts about pivot-table