Timedora

Building Reliable PivotTables

A practical lesson on preparing source data, translating business questions into PivotTable layouts, choosing appropriate summaries, analyzing time periods, and checking results before sharing.

Prepare the source data

Prepare reliable source data

A can only summarize what its source data represents. Begin with one header row, giving every column a distinct, nonblank name. Keep each row to one record and each column to one kind of information—for example, separate fields for Order Date, Region, Product, Units, and Revenue.

Before building the summary, check for inconsistent category labels, such as North, north, and N., as well as dates or numbers stored as text. Look for accidental blank rows or columns inside the data; these can interfere with identifying the full source range.

Most importantly, establish the : what does one row represent? If an order has several product lines, each line may occupy a separate row. Counting those rows counts order lines, not necessarily unique orders. The same issue affects averages: an average of revenue on order-line rows is an average line revenue, not an average per order.

When possible, format the source range as an Excel Table. This makes the records easier to manage as data is added. After changing the source, the so its summary can reflect those changes.

Turn the question into a useful summary

Start with the business question

Before moving fields, identify what to measure, how to group it, and what to compare or filter. Then place fields in the areas to make that question visible:

  • Values holds the measure to summarize, such as Revenue or Units.

  • Rows lists categories down the table; Columns spreads categories across its top. Use them to show the comparison in a readable way.

  • Filters narrows the report as a whole, for example to a particular salesperson or channel.

For the question “Which regions generated the most revenue each quarter?”, the measure is revenue, the groups are regions and quarters, and the comparison is among regions within each quarter. Put Region in Rows, Order Date in Columns, and Revenue in Values; group the dates by quarter as appropriate. If there are only a few regions, putting Region in Columns instead may make the side-by-side comparison easier to scan.

For “What were total units and revenue by product and quarter?”, use Product in Rows, dates grouped by year and quarter in Columns, and Sum of Units and Sum of Revenue in Values. Add Region to Filters when the report needs to focus on a particular market.

Match the summary function to the measure

The Values area applies an to records in each group. Choose one whose meaning fits the question:

  • Sum adds values, such as revenue across records.

  • Count counts nonempty values in a field. For cases, Count of Case ID counts nonblank IDs—but it represents cases only if the supports that interpretation.

  • Average averages the values present. Check the grain: averaging Revenue in order-line data gives average line revenue, not average order value.

  • Max returns the largest recorded value in a group, such as the highest delivery time.

Check the displayed summary label, such as Sum of Revenue or Count of Revenue. Excel commonly defaults to Sum for numeric fields and Count for text fields or fields with blanks. A number stored as text may therefore be counted rather than summed. If the function does not match the question, change it in Value Field Settings.

Count is not automatically a distinct count of customers or orders: it counts nonempty values. Distinct Count is available when the uses the Data Model. Also avoid averaging subgroup averages unless the groups should receive equal weight. For example, averaging daily averages when days have different transaction volumes may not equal the average across all transactions. Use the underlying observations or a correctly defined measure when that is the intended comparison.

Group dates without losing context

Group dates without losing context

A can be placed in Rows or Columns and grouped into periods such as months, quarters, or years. This lets a show a trend or compare time periods, provided the source dates are genuine dates and the grouped result covers the range you intend to analyze. Text-formatted or invalid dates may not group as expected.

For a monthly trend spanning several years, keep the year as well as the month. Grouping only by month can combine every January, every February, and so on, hiding differences between years. One useful layout is Year and Month in Rows with Revenue in Values. To compare periods side by side instead, put Year or Quarter in Columns.

Thus, the date grouping is part of the question’s meaning: a month-by-month view within each year answers a different comparison from a single combined view of each month across all years.

Validate and maintain the report

Check the report before sharing

Read the layout against the original question. Each row and column should represent a meaningful category or period, and the Values area should contain the requested measure. Check that the comparison is readable: put the primary grouping in Rows and use Columns for a manageable number of categories or periods.

When appropriate, compare the grand total with a direct total from the source records. The comparison is meaningful only when both use the same filters and date range. If the totals differ, investigate whether the source range, filters, or records included in the summary match what you intended.

Inspect counts and blank categories too. A count might represent line items, nonblank field values, or records, depending on the field and . Unexpected (blank) categories are worth investigating rather than ignoring.

Apply filters deliberately, and make important filters visible so readers can tell which records the report includes. Finally, after source data changes. A may not include new or corrected records until it is refreshed. These checks help establish that the report includes the intended records and that its summary means what the business question asks.

  • : A area for arranging fields that define groups, measures, or report-wide criteria.