Create Percentage of Unfiltered Total in Excel – Pivot Table Guide

microsoft excelpivot table

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?

Best Answer

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

Related Question