Home / PivotTables / Summarize By and Show Values As

Summarize By and Show Values As

Analytics7 min readMicrosoft 365 for Windows

The problem

A PivotTable of net sales by product and region shows amounts. The reader asks different questions: what share of the total does each product make; how does one region compare with the average; how did a product grow from quarter to quarter; which product ranks first in each region. All of these can be answered without a single formula outside the report, with two settings of the Values area: how the numbers are summarized, and how they are shown.

Short theory

Every number in the Values area is the result of two independent choices.

The first is the summary function, which says how the records of each cell are combined: sum, count, average, maximum and so on. The second is the display calculation, which says what to do with that result afterwards: show it as it is, as a share of a total, as a difference from another cell, or as a running total.

The two stack. First Excel summarizes the records, then it transforms the summary. Understanding the order explains most of the confusing outcomes. A "percent of column total" is the percentage of the summarized numbers, not of the individual records.

Both settings live in the same dialog, Value Field Settings, reached by right-clicking a value and choosing it, or by clicking the field in the Values area and choosing Value Field Settings.

Steps in Excel

Summarize Values By

The first tab of the dialog, Summarize Values By, lists the functions:

The last four deserve a note on naming. The names without the p are the sample versions, which divide by n minus 1 (the same as STDEV.S and VAR.S in formulas). The names with p are population versions, which divide by n (STDEV.P and VAR.P). The sample version is the right choice when the records are a sample of a larger set; the population version when they are all there is.

The Summarize By sheet applies each function to the net sales of one product, chosen in B1 (Neurolin). The results are: Sum 3,208,325.25, Count 69, Average 46,497.47, Max 162,024.30, Min 4,085.20, StdDev 33,252.01, StdDevp 33,010.17, Var 1,105,696,115.84 and Varp 1,089,671,534.45. Build a PivotTable with Product in Rows and Net Sales in Values several times, one per function, and compare. The same field can be dropped into Values more than once, each copy with a different function, which allows count, sum and average side by side. Rename the copies, since Excel will call them Sum of Net Sales2 and so on.

The summary applies to the records behind each cell. Average of Net Sales therefore averages the transactions, not the products: a product with a few large transactions and many small ones gets its own mean.

The Summarize Values By tab of Value Field Settings, with the list of functions from Sum to Varp.
The Summarize Values By tab of Value Field Settings, with the list of functions from Sum to Varp.

Show Values As

The second tab, Show Values As, has a drop-down with the display calculations. Start with the share calculations, which use the grid in the Show As sheet: products in rows 4 to 9, regions across, totals in row 10.

The blocks in Show As are laid out one beneath the other, with titles in rows 13, 25, 37 and 49, so each block can be compared with the PivotTable setting of the same name.

Show Values As in Value Field Settings: % of Grand Total above; in the block below each region's column adds to 100%.
Show Values As in Value Field Settings: % of Grand Total above; in the block below each region's column adds to 100%.

Differences and running totals

Some calculations need a Base field, the field along which they move, and a Base item where relevant.

Base item (previous) turns quarterly sales into quarter-on-quarter change, with no formula outside the report.
Base item (previous) turns quarterly sales into quarter-on-quarter change, with no formula outside the report.

The Running Total sheet follows one product by quarter. With Velorin in the filter, (previous) returns +14.7%, +76.3% and -69.5% for the last three quarters of 2025, and -16.9% for the second quarter of 2026. The first quarter of each year shows blank: with Years in the rows, (previous) does not cross into the year before, so the +13.0% from the last quarter of 2025 to the first of 2026 appears only on the Running Total sheet. The percent difference is the change as a fraction of the previous value, so a fall of 69.5% followed by a rise of 13.0% does not take you back to where you were.

Rank is the setting that answers "which product is first in each region". With Region in Columns, Product in Rows and the base field set to Product, the rank is computed down each column.

Percent of parent

When two fields are nested in Rows, the calculation % of Parent Row Total shows each item as a share of the item that contains it. The Parent Share sheet has Region and Channel in the rows: each channel's share of its region adds up to 100% within each region, while % of Grand Total shows each channel's share of everything. There are also % of Parent Column Total and % of Parent Total, which let you choose the parent field.

Changing the number format

A display calculation changes the meaning of the number, so the number format must follow. A percentage shown as 0.242 is not wrong, but it is unreadable. In Value Field Settings, click Number Format and choose Percentage with one decimal. The format is stored on the field.

Common mistakes

Companion file

Illustrative data only. Not a decision tool.

For further reading