Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to calculate a % of total from the unfiltered total rather than the filtered total. So I have four rows like this unfiltered:

Column1  Column2   Column3
-------  -------   -------    
Blah       1         17%
Blah       2         33%
Blah       1         17%
Blah       2         33%
Total      6        100%

I want to filter by Column 2 where the value is greater than 1, so I'm looking for the percentage column to calculate the percentage based on 6, but when I filter, it's only doing it on 4. So here's what I'm looking for

Column1  Column2   Column3
-------  -------   -------    
Blah       2         33%
Blah       2         33%
Total      4         66%

But this is what I'm getting:

Column1  Column2   Column3
-------  -------   -------    
Blah       2         50%
Blah       2         50%
Total      4         100%

Is there any way to do what I want in the field settings dropdown or can this be done with a calculated column?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

If you create a Pivot Table with your data, use Column 1 and Column 2 for your Row Labels and Column 3 for your values and it'll automatically subtotal and total your values for you.

The left table shows your base data. The middle table shows unfiltered data. The right table shows your data filtered >1 (without the percentage format applied).

PivotSubtotals

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.