Question : Filter a PivotTable by values calculated within the Pivot Table

I am creating a PivotTable within Excel based on data where I need to aggregate individual sums into a higher level total (which is what I am using the PivotTable to do), and all that works fine - but then I need to only see those items where the AGGREGATE value exceeds a certain threshold.

I can't seem to find a way to filter a PivotTable based on one of the calculated values within the PivotTable itself. Am I missing something easy, or is there a workaround I haven't thought of?

This is Excel 2003, but I can use Excel 2007 if it's a "must" for some feature contained there.

A sample simplified dataset is shown below:
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
Client     Matter     Parcel     Value
A           1         1a          100
A           1         1b          150
A           2         2a           50
A           2         2b           75
B           3         3a          180
B           4         4a          100
B           4         4b          110
B           4         4c          120
 
The resulting PivotTable looks like this, 
as it does not show the Parcel field, 
and sums up the "Value" field:
 
Client     Matter   |  Value
A           1       |  250
            2       |  125
B           3       |  180
            4       |  330
 
What I need it to look like, as I only want to 
show values where the AGGREGATE value 
for the entire Matter is 250 or more is:
 
Client     Matter   |  Value
A           1       |  250
B           4       |  330
Open in New Window Select All

Answer : Filter a PivotTable by values calculated within the Pivot Table

I'm quite sure you can't use a calculated field in the pivot table to isolate those with the entire mattter greater than 250.  You can however add a new column to your source table to return a true of false if the matter is greater than 250.

Referring to your table, if it were to begin in A then the next available column would be A, so you could use this in A2.

=SUMPRODUCT(--($A$2:$A$9=$A2),--($B$2:$B$9=$B2),$D$2:$D$9)>=250

Give the column a title and then include it in the page segment of your pivot table and set it to show TRUE only.

Also did you know you can place a filter in the Total column in the pivot table (not many people do).  Select the cell to the right of 'Total' > shift left arrow to select it and the 'Total' field > hold shift and go down to end of range.  Then turn on autofilter and filter custom by everything greater than or equal to 250.

Random Solutions  
 
programming4us programming4us