Sub topic 13
Showing values as percentages, running totals and differences
This chapter covers the Show Values As setting on a value field. It assumes you can already build a PivotTable with row, column and value fields, and that you know how a summary function such as Sum works. The examples use the sales dataset from earlier chapters.
What Show Values As does
A value field first calculates a number with its summary function, for example Sum of Sales. Show Values As then transforms that number for display. The transformation compares each cell with a total, a neighbouring item or a running figure. The underlying data does not change, and the summary function does not change.
This lets you answer relative questions without writing formulas:
- What share of total sales does each region produce?
- How do cumulative sales grow month by month?
- How much did sales change compared with the previous month?
Here is the source data again.
Date,Region,Product,Units,Sales
2025-01-05,East,Widget,10,250
2025-01-12,West,Gadget,4,180
2025-02-03,East,Gadget,7,315
2025-02-14,West,Widget,12,300
2025-03-09,East,Widget,5,125For the examples, use this layout:
Rows: Region
Columns: Product
Values: Sum of SalesApplying a Show Values As option
- Click any cell inside the value field in the PivotTable.
- Right-click, choose Show Values As, and pick an option from the menu.
- Alternatively, open Value Field Settings, then the Show Values As tab, and choose from the drop-down list. This tab is also where you pick the Base field and Base item that some options need.
Each option changes only how that one value field displays. You can add the same field to Values twice and show one copy as a raw total and the other as a percentage. Excel names the second copy something like "Sum of Sales2". Rename it in Value Field Settings so the headings make sense, for example "Share of total".
Percentage options
The percentage options differ in what they use as the denominator. This table lists the common ones.
| Option | Denominator | Typical use |
|---|---|---|
| % of Grand Total | The grand total of the whole PivotTable | Share of overall sales for each cell |
| % of Column Total | The total of the column the cell is in | Product mix within each column |
| % of Row Total | The total of the row the cell is in | Product split within each region |
| % of Parent Row Total | The subtotal of the item's parent in the row area | Share of a region within a group |
| % Of | A chosen base item in a base field | Compare every item with one reference item |
With the layout above, the West row has a Gadget total of 180 and a Widget total of 300. The West row total is 480.
- % of Row Total shows 37.5% for Gadget (180 / 480) and 62.5% for Widget (300 / 480). Each row adds to 100%.
- % of Column Total divides by the column total instead. The Gadget column holds 180 + 315 = 495, so West Gadget shows about 36.4% (180 / 495).
- % of Grand Total divides by all sales, which is 1,170. West Gadget shows about 15.4% (180 / 1,170).
Percent of a base item
% Of compares every item with one item you pick. In the Show Values As tab, choose % Of, set the Base field to Region and the Base item to East. East then shows 100%, and every other region shows its sales as a percentage of East's sales. A value above 100% means that item outsold the base item.
Running totals
Running Total In accumulates values along a base field. It needs an ordered field, usually dates or months.
- Put Date in Rows and group it by months (see the chapter on grouping).
- Put Sum of Sales in Values.
- Open Value Field Settings, choose Running Total In, and set the Base field to Months.
For all regions combined, monthly sales are 430 in January, 615 in February and 125 in March. The running total shows 430, 1,045 and 1,170.
A related option, % Running Total In, shows each running total as a share of the final total. Using the figures above, it displays about 36.8%, 89.3% and 100%.
The running total follows the sort order of the base field. If you sort the months in descending order, the total accumulates from the latest month backwards, which is rarely what you want. Keep the base field in chronological order.
Differences from a previous or chosen item
Difference options show change instead of size.
| Option | What each cell shows |
|---|---|
| Difference From | Value minus the value of a base item |
| % Difference From | The difference as a percentage of the base item's value |
For both options you set a Base field and a Base item. The base item can be a specific item, such as East, or one of the relative items (previous) and (next).
To measure month-over-month growth:
- Group dates by months and place Months in Rows.
- Set the value field to % Difference From.
- Set the Base field to Months and the Base item to (previous).
February shows 43.0% ((615 − 430) / 430, rounded), and March shows about −79.7% ((125 − 615) / 615). January has no previous month, so its cell is blank.
Other options worth knowing
- Rank Smallest to Largest and Rank Largest to Smallest show each item's rank in a base field instead of its value. Use them to produce a league table.
- Index weighs a cell against its row and column totals. It measures how much a cell over- or under-represents compared with an even spread. Most analyses never need it.
- No Calculation returns the field to its raw summary value. Use it to undo any of the options above.
Common problems
- The Base field is greyed out or missing. Options that compare items need a field in the Rows or Columns area to compare along. Add the field first.
- Percentages do not add to 100%. You probably chose a total that does not match the direction you read. Switch between row and column totals, or check whether filters hide some items. Percentages use the totals of the visible data.
- Wrong values after rearranging fields. Base field and base item settings can reset or point at a field you removed. Reopen Value Field Settings and check them.
- Percent formatting looks odd. Percentage options apply percentage formatting automatically. If you need more decimals, change the number format in Value Field Settings rather than formatting cells by hand, so the format survives a refresh.
Practice
Exercise
A PivotTable has Region in Rows, Product in Columns and Sum of Sales in Values. You want each row to add up to 100% so you can see each region's product split. Which Show Values As option do you choose, and which total does it divide by?
Show answer
Choose % of Row Total. It divides each cell by the total of the row that cell sits in, so each row adds to 100%.
Exercise
Monthly sales are 430 (Jan), 615 (Feb) and 125 (Mar). You set the value field to % Difference From with Base field Months and Base item (previous). What does the March cell show, and why is the January cell blank?
Show answer
March shows about −79.7%, calculated as (125 − 615) / 615. January is blank because it has no previous month to compare with.
Exercise
You want to see Sum of Sales as a raw number and as a share of the grand total in the same PivotTable. How do you set this up?
Show answer
Drag Sales into Values a second time. Leave the first copy as it is. Set the second copy to % of Grand Total in Value Field Settings, and rename it, for example "Share of total".