Filter/Group Pivot table data columns by field summary type?

colintso

New Member
Joined
Jan 21, 2014
Messages
1
I'm attempting to filter a pivot table so that it will only show one field summary type at a time (e.g. Sum, Count). Currently, I have them on the same pivot table and thus end up with duplicate fields in the "Values" section of the pivot table settings. I would also like to filter through VBA, as the table is being created by VBA at the moment.
<o:p> </o:p>

Row Labels
Mean (Sum)
Mean (Count)
Mean (Average)
Norm (Sum)
Norm (Count)
Norm (Average)
Doh (Sum)
Doh (Count)
Doh (Average)
1
169.5
6
28.25
320.7
6
53.45
561.25
6
93.54166667
2
393.4
7
56.2
178.5
7
25.5
903.4833334
7
129.0690476
4
793.9225
8
99.24031251
782.55
8
97.81875
739.7913096
8
92.4739137
5
914.3091667
7
130.6155952
1638
7
234
947.3361904
7
135.3337415
Grand Total
2271.131667
28
81.11184524
2919.75
28
104.2767857
3151.860833
28
112.5664583

<tbody>
</tbody>
<o:p> </o:p>
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi and Welcome to MrExcel,

If I'm understanding your setup, I don't think you can "filter" by summary type.

You could use VBA to change the type of a displayed datafield's .Function property to switch one type to another.
 
Upvote 0

Forum statistics

Threads
1,214,620
Messages
6,120,554
Members
448,970
Latest member
kennimack

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top