Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there some way to provide your own values for the grouping rows in a pivot table. I have data from an external system with values provided for all drilldown levels, laid out as rows. There is one column per aggregation level and the sublevels are blank for rows which provide aggregate values.

An trivial example is a 2 level drilldown per region and country where we ahve the columns

Region; Country; Value

We might have the two rows

Europe; Germany; 10
Europe; France; 12

and the aggregate row

Europe; (blank); 25 (the value is not additive, so not simply the sum of the two previous rows)

The problem is now that if I try to createa drilldown report in excel, the pivot table functionality simply interprets the blank entry as another entry on the most granular level and then sums over the rows to provide a total for Europe. The resulting total will be 10 + 12 + 25 instead of just 25.

Is there some way of presenting such "pre-aggregated" data in a drilldown report in excel?

Thanks, Rickard

share|improve this question

You can exclude blanks from the result by using the drop down menu on Row Labels but there is a trick. The contents of the drop down are dependent on what cell is currently active in the pivot table. Make sure that one of the Country names is selected, or '(blank)', and then open the drop down menu. You can deselect (blank) and it will be removed from the aggregates.

share|improve this answer
Thank you. This solves the first half of the problem. The next step would be to be able to use the blanks as aggregates, rather than letting the pivot table calculate the aggregates. This I suspect is not trivial or even possible... – Rickard Oct 18 '11 at 13:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .