Create Multiple Subtotals in a Pivot Table

When you add multiple fields to the Row Labels area in a pivot table, subtotals automatically appear for the outer fields. In the pivot table shown below, Region and City fields are in the Row Labels area. Two fields are in the Values area: Sum of Quantity shows the total quantity for each city, and Sum of TotalPrice shows the total sales amount.

MultiSub01

Region Subtotal is Shown

A subtotal row is at the bottom of each region. It shows the total quantity and total sales for each region. You can add another row of subtotals for each region, to show the average quantity and sales. 

Add More Subtotals

You can change the field settings for the Region field and it will show more subtotal rows:

  1. Right-click one of the Region row labels, and click Field Settings.

    FieldSettings

  2. In the Field Settings dialog box, click the Subtotals & Filters tab.

    FieldSettingsSF

  3. In the Subtotals section, click Custom. Note: When you select Custom, the Automatic subtotal is removed.
  4. In the list of functions, click Sum and Average – the functions you want to use as subtotals. 

    FieldSettingsSub

  5. Click OK, to close the Field Settings dialog box

Note: When you select multiple Custom subtotals, the subtotals are displayed at the bottom of the group, even if you set the option to show subtotals at the top of the group.

_________________

One thought on “Create Multiple Subtotals in a Pivot Table”

  1. Why whe I select Sum and Average my Sum looks right but the average below is not correct for each subtotal of the groups?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.