7. PivotTables and PivotCharts
7.2 Field Areas: Rows, Columns, Values and Filters
Put fields where they answer the report question
A daily delivery recap asks for the recorded amount by city and platform. The operations lead then wants a Delivered-only view. The ten source orders can support both. What changes is the report's field placement and filter. If the report shows 544, you should be able to explain its city, platform scope, status and calculation without opening a hidden formula.
This lesson uses fictional order records inspired by delivery apps such as Blinkit and Amazon Now. The amounts and order references are practice data. Start with the chapter's city example, make one side-by-side comparison, and then move a field to see which question the rebuilt layout makes easier.
- Rows list items down the report. City makes one visible section or row per city in the base layout.
- Columns put items across the report. Platform gives separate Blinkit and Amazon Now columns.
- Values calculate the measures. Choose Sum of Amount for rupees, or Count of Order ID for filled keys.
- Filters set the overall included scope. Status selects all statuses, Delivered or another allowed subset.
Read the four areas as one configuration
The field list names come from the controlled source headings. City is the field. Pune is one item from it. Move the City field to Rows and the list of city items supplies row labels. Put Platform into Columns and platform items label the columns. The Values field interprets the source records that match both items and the current filters.
Read one cell before moving anything
Suppose the report currently displays Pune, Blinkit and all statuses. The Pune–Blinkit intersection contains 64, 150 and 220, matching three source records. Sum of Amount returns 434. The city starts as the left label, the platform sits in the heading, and the filter state describes the population. You can verify the entire number by identifying those three records.
The same placement with Count of Order ID gives 3 for this intersection. The source still has the same three records. The result answers how many populated IDs are present for those conditions. Values can aggregate numeric fields by different operations and can count text identifiers. Read the field's actual summarisation before describing what a visible number means.
Where should a field go when you need side-by-side comparisons?
For the city and platform matrix, place Platform in Columns. If you only need a single global platform selection, use a report filter instead.
Follow the Pune cell through one controlled filter
Read City
Pune identifies the row group. Exactly four orders in the full starter source have this city value.
Read Platform
The Blinkit column restricts the current intersection to three Pune records. The Amazon Now row contribution of 110 belongs to the other column.
Read Values
Sum of Amount adds 64, 150 and 220. The all-status Pune and Blinkit result equals 434.
Read Status
Changing Status to Delivered excludes the 220 Cancelled value. Pune and Blinkit now add to 214.
Lab 1 · Reproduce the city and platform matrix
Goal. Build a report with the four fields in the intended areas and independently verify the Pune and Blinkit intersection. Create a scratch worksheet AreaOrders. Use the five source headings shown and the ten rows in A1:E11. Use plain numbers in Amount and keep the other fields as text.
| Order ID | City | Platform | Amount | Status |
|---|---|---|---|---|
| BLK-1001 | Pune | Blinkit | 64 | Delivered |
| BLK-1002 | Nashik | Blinkit | 270 | Delivered |
| AMN-1003 | Pune | Amazon Now | 110 | Delivered |
| BLK-1004 | Nagpur | Blinkit | 240 | Cancelled |
| AMN-1005 | Kolhapur | Amazon Now | 232 | Delivered |
| BLK-1006 | Pune | Blinkit | 150 | Delivered |
| BLK-1007 | Solapur | Blinkit | 1299 | Delivered |
| AMN-1008 | Sambhaji Nagar | Amazon Now | 195 | Returned |
| BLK-1009 | Pune | Blinkit | 220 | Cancelled |
| BLK-1010 | Nashik | Blinkit | 90 | Delivered |
- Verify source. Count ten present Order IDs and ten numeric Amount entries. Check A1:E11 and choose a named Excel Table if you will test its growth. Create a conventional PivotTable on a separate sheet in your supported edition.
- Place one field at a time. Put City into Rows, Platform into Columns and Amount into Values. Verify Sum is selected. Put Status in Filters and select all statuses.
- Confirm the independent total.
=SUM(AreaOrders!D2:D11)gives 2870. The all-status report includes reported amounts for Cancelled and Returned orders. Label its measure accordingly. - Read the expected grid. The order of columns can vary. Verify each named cell. An em dash in the lesson indicates a combination with no matching rows. The presentation can differ in your workbook.
- Verify one cell and its record count.
=SUMIFS(AreaOrders!D2:D11,AreaOrders!B2:B11,"Pune",AreaOrders!C2:C11,"Blinkit")gives 434. Apply the same City and Platform criteria with COUNTIFS to return 3 matching rows. Confirm by reading BLK-1001, BLK-1006 and BLK-1009.
| City | Amazon Now | Blinkit | Grand Total |
|---|---|---|---|
| Kolhapur | 232 | — | 232 |
| Nagpur | — | 240 | 240 |
| Nashik | — | 360 | 360 |
| Pune | 110 | 434 | 544 |
| Sambhaji Nagar | 195 | — | 195 |
| Solapur | — | 1299 | 1299 |
| Grand Total | 537 | 2333 | 2870 |
Verify and recover. If you see a single Platform choice above the report, check whether that field is in Filters instead of Columns. If report cells contain counts, inspect the Values settings. If the grid is absent on your edition, write City values down a separate sheet, put the platform labels across and use the specified SUMIFS variant as a substitute exercise. Keep the clean source for the next lab.
Lab 2 · Filter and rearrange the same source safely
Goal. Check the impact of two different changes. First choose only Delivered. Then rearrange Platform while keeping that filter. The expected total distinguishes a population change from a layout change. Work in a separate scratch report built from the same ten source records or copy the known configuration in your scratch workbook.
- Set the global filter. With Status in Filters, select Delivered. Seven rows remain in the source subset for the report and their total is 2215. The subtotal retained for Amazon Now is 342 and for Blinkit is 1873.
- Verify a local change. Read Pune–Blinkit again. The 220 cancelled row is outside the Delivered scope. Its two remaining source rows add to 214. Pune's Amazon Now figure stays 110, so the city total becomes 324.
- Change layout with scope held constant. Move Platform from Columns to Rows beneath City. Keep Status Delivered and Sum of Amount. The groups should now display platform items under each city. Read Pune with a city subtotal of 324 if subtotals are shown, and child amounts of 110 and 214. Grand total stays 2215 when the grand total is displayed.
- Show a single platform as a filter. Move Platform from Rows to Filters. Select Blinkit, leave Status set to Delivered and compare the current city results. Pune is 214 and the grand amount is 1873 from five matching orders. No separate Amazon Now column is needed for a report explicitly dedicated to that selection.
- Recover the original configuration. Return all Status items, clear or remove the Platform selection and move Platform to Columns. Confirm that Platform is unfiltered and both items are visible. The original six city groups and 2870 should return.
Verify and recover. If moving a field changes the result when you expect only a visual change, inspect the current filters on the field and report. If the top level is platform instead of city, reorder the two Rows fields. For a worksheet-only exercise, recreate each subset with source filters and explicit criteria. Restore all items before saving your scratch report.
Read nested row fields from parent to child
Let the first field express the main comparison
When City is the only Rows field, Pune appears beside an aggregate for the entire city in the current context. Put Platform underneath City, and each city can expand to show its matching platform values. In the all-status report the Pune group has a total of 544 and the children are Amazon Now 110 and Blinkit 434. Only cities with matching records display those observed combinations under the standard exercise scope.
Swap the order so that Platform is first and City is second. The important starting rows are now Amazon Now and Blinkit. Pune appears in the relevant child groups under both platforms. This helps a reader compare cities within one platform. The city-by-platform intersection still uses the same matching records under the unchanged all-status filter. Read the whole path of labels before interpreting the child value.
Before copying the report into another tool, decide whether your intended output row is a platform subtotal or a city-and-platform detail. In a compact display an indented platform under Pune and the city subtotal can look like records in one list. If you add all visible parent and child amounts together, you can count the same source amounts more than once. For Pune alone, 544 plus the two child amounts 110 and 434 would give 1088, although the same city scope actually contains 544.
Choose a report form for its reader
- Compact view. Multiple row fields can share one indented column. A person can expand a parent to navigate patiently, and the layout uses less horizontal space.
- Outline view. Separate row fields visually to help the reader see which area each label comes from, with parent and subtotal placement defined by the report options.
- Tabular view. Give row fields their own columns where supported. If you need one label on each detail output row, use the option to repeat item labels where available.
- Subtotal controls. If your output is a list of city-platform observations, configure subtotals and grand totals carefully so a copied range does not mix summary and detail grains.
Tabular form can improve readability but it doesn't turn the report into source orders. A child row still combines matching records. Repeating an item label helps identify its parent on a copied row. It does not create more matching source records. Audit the expected groups and totals before copying to an external report format.
Distinguish collapse from exclusion
On a supporting PivotTable, try expanding or collapsing the Pune row to hide or show its platform children. Collapsing a parent summarises the chosen group visibly. In the simple all-status exercise the Pune parent amount remains 544. An actual member filter can instead remove one platform's records from scope and recompute the result. Inspect the filter selection and group state independently.
Why might Pune appear twice in a correctly configured report?
With Platform first in Rows and City second, Pune can appear once beneath each platform that has relevant records. Read its parent label to determine the cell's scope.
Choose which comparisons go across the page
Putting Platform in Columns makes sense when there are two choices and the reader wants an immediate comparison. Putting Order ID there could create as many individual headings as orders. A technically valid arrangement can be difficult to read. Keep a small number of useful categories across the page, and choose a row grouping or filter for fields with many items.
Nest a second column field to expose a different split
In a separate scratch report set City in Rows, Platform and then Status in Columns, with Amount in Values as Sum. Move Status from Filters to Columns to show its items side by side under each platform. Keep all statuses available in this test. Observe how the header width grows. A filter-only Status had a simple current context. Making it a column field displays comparisons you can read simultaneously.
Trace Pune under Blinkit. The Delivered amount is 214 and the Cancelled amount 220. The sum of those two remains 434 for the Pune and Blinkit group. Under Amazon Now the Pune Delivered amount is 110. These splits are different from an independent report of all delivered amounts. Read the city, platform, status and operation before copying a figure.
| Platform | Delivered (₹) | Cancelled (₹) | Returned (₹) | Total (₹) |
|---|---|---|---|---|
| Amazon Now | 342 | — | 195 | 537 |
| Blinkit | 1873 | 460 | — | 2333 |
| Both platforms | 2215 | 460 | 195 | 2870 |
Once you used the nested view to explain the difference, put Status back into Filters if the audience wants one simple comparison or is reading on a narrow screen. Use enough headers to make the meaning clear. Leaving whole-word city or platform labels avoids making downstream readers decode short codes from another sheet.
Treat an empty result and a measured zero as different evidence
For the all-status table, no starter records combine Nashik and Amazon Now. Some report options can display 0 for an empty result. That represents a presentation choice. In a different controlled scratch copy add a synthetic Nashik order on Amazon Now with a zero amount under an included status. After verifying the source and refresh, that combination now has one matching record and a numeric amount of zero. Use an explicit count to tell the two situations apart.
If no source record exists, a count of matching records verifies the absence for that file and scope. It cannot establish that the platform made no orders in that city across every possible data source. The step only describes the included export. Record its date and coverage if this distinction affects a real decision. In a shared workbook, document whether displayed empty combinations use an em dash, a blank cell or a substitute zero. Decide how a reader using a copied version will distinguish those results from measured zeros. If the report includes a numeric source-row count next to the amount, state its original grain. The practice count is one per order because the IDs are present on unique input records. A count of source order lines would need a different caption.
Confirm the count and sum with the same selection before turning an empty item into a comparison claim.
How do you confirm a zero represents a measurement?
Find the matching source record and verify its recorded amount is numeric zero. A styling option for empty report cells alone gives no such evidence.
Combine filters and prove which records were included
Use report filters for a scope shared by the entire grid
Putting Status in Filters allows you to choose the status population for the whole PivotTable without using a column for each status. A report might say Delivered near the top to explain its scope. Save or write the intended selection with the report. The base summary includes 2215 delivered, 460 cancelled and 195 returned. When you select Delivered, the two other status amounts no longer contribute. The amount after filter can be tested independently.
Where the filter supports multiple selected items, selecting Delivered and Returned in the same Status filter includes records from either selected status. Their amount becomes 2215 plus 195, or 2410 across eight orders. A second separate filter Platform = Blinkit requires records to satisfy that platform condition too. With both statuses selected and Blinkit as the platform, the count is five and the total is 1873 because the only returned order in the sample belongs to Amazon Now.
Check the difference between field-level filters and layout
- Overall choice. Use Filters to limit all results to one platform or status context.
- Items on an axis. A field in Rows or Columns can also be filtered to selected items. Read the individual field's filter indicator.
- Metric-ranked groups. A value filter can restrict members by the selected aggregate. Sorting may arrange those groups without removing records on its own.
- Source preparation. If a source restricts a report to preapproved records, document that as a separate stage. Check what is actually in the data used for the PivotTable.
A field may have a current selection even after moving areas, depending on the operation and version. If your transformed view unexpectedly loses a row or column, inspect the actual selection and context. Confirm Status and Platform independently before publishing an updated summary. Return to all items for the named base checks.
Try a manual control in the practice sheet. To verify the Delivered and Blinkit subset with a worksheet formula, sum D2:D11 under C2:C11,"Blinkit" and E2:E11,"Delivered" as SUMIFS criteria. Count the same matched records using COUNTIFS with the identical constraints. On your first report compare both results. A sum could accidentally match when a missed row has an amount of zero. The row count catches a different kind of difference.
Does moving Platform from Columns to Rows automatically change the included records?
The new placement changes the report organisation. Check whether a filter context changed at the same time. With the same records, measure and calculation, the independent totals should agree.
Use Values to calculate a result from the matching records
Avoid grouping by Amount when the report needs a sum
When Amount goes into Rows, each distinct recorded amount can become a label. That may help inspect the range of values, but it does not produce a total for each city. Put Amount into Values and inspect Sum when the question is about the amount per group. If you want an amount-range report later, define the interval or group the numerical values with a clear rule and leave the measure calculation visible.
To see the difference, use a copy of the full city report. Remove Amount from Values, then put it below City in Rows. Pune now has child items labelled 64, 110, 150 and 220 under all statuses, assuming the tool has not grouped them. Those labels are source amounts as categories. Restore Amount in Values as Sum and see 544 computed for their city. A label and a computed result can both have the same type of characters while taking different roles.
Add a second measure with a clear unit
In a city-only copy add Order ID to Values and choose Count. Pune shows 544 and a count of four. Nashik shows 360 and a count of two. The all-city count is 10 under the known one-row-per-order fixture. A raw order-line report could have two present IDs for one order. Then a Count of Order ID would give two and a distinct order count would be one.
When more than one value field is present, Excel may display a synthetic Values label in the Rows or Columns area. This label arranges the shown measures. It is not a new underlying source field. You can choose a suitable arrangement on supported reports. For a report with both platform and two metrics, read all column or row layers to check whether a figure is a count or a currency sum.
Check this with Pune and Blinkit. The report has ₹434 and three counted records with all statuses. Delivered gives ₹214 and two records. Even if the report rearranges these as measures underneath city names on separate rows, compare the same numbers and labels. Keep measure captions readable in a small screenshot or exported table. A caption that drops Count can turn a perfectly correct 3 into an ambiguous amount.
Layer display formatting after the calculations work
Format the Amount measure in rupees or with a units caption, and format the count as a whole number. In an edition with Value Field Settings, use the number-format option intended for that measure. Ordinary formatting of a single cell is less helpful when the report rearranges. Inspect the formatting preferences and verify on a controlled refresh. Options determine whether a particular report preserves cell formatting.
- Show or hide grand totals deliberately. They help many readers understand the included scope. Their absence in a compact design can require a separate total check.
- Include subtotals where they explain the hierarchy. Label parent totals as such and keep them out of detail-only material.
- Check empty cells. If you display zero for empty cells, state that decision where a reader might otherwise infer measured absence.
- Use a readable style. Clear header names, stable formats and visible filter context matter more than adding colours to every category.
Use explicit moves when a layout must stay reproducible
Most practice editions let you drag a field from its list to an area. Some also offer a context command to add or move it to a named area. Choose the available method that lets you verify the target. Mouse drag, keyboard navigation and a screen-reader workflow can reach the same placement when supported. Read the actual area contents after every move. If a change did not happen, check that your selected report is the one you intended.
Choose one main role for the original categorical field
For the conventional table-based report used here, put a field once in the main layout areas Rows, Columns or Filters. Moving Platform from Columns to Filters removes its side-by-side breakdown and makes it an overall selection. If you want to compare platforms side by side while selecting which platform items appear, use the column field's own filter. If a second metric uses the same numeric field, the Values area can support more than one instance on compatible sources. That is a separate report action.
When you remove a field from the report layout, confirm it remains available in the source field list. Moving and removing do not change its original source cells. Adding or modifying an actual source column is a different action. To test an additional source field in this lab, make a scratch copy and inspect the actual selected range, table and update after modifying it.
Create a small placement checklist for sharing a report
- Write the layout. For the original fixture use City in Rows, Platform in Columns, Sum of Amount in Values and Status in Filters.
- Write the scope. State all statuses for the original measure and include Delivered in the heading of the narrower view.
- Write a point check. Cite Pune and Blinkit at 434 for all statuses and 214 for Delivered. Inspect the corresponding source records.
- Write a count and sum check. Confirm ten records and 2870 overall, then seven and 2215 for Delivered.
- Clear unintended settings. Check for prior filters before saving a baseline. Reproduce the base result from the same source.
Build a different layout for each of two reviewers
The same file goes to a city manager and a platform lead. A useful solution keeps the source and controls consistent while choosing layouts that support their specific checks. Use two scratch PivotTables for this exercise. Confirm each visibly refers to the ten recorded orders before you change the layouts.
Answer a city manager's comparison
The city manager wants to compare Pune and Nashik with both platform figures visible. Keep City down the page and the two platforms across. For this exercise you can filter to the two city items in the Rows field. Keep all statuses. Check that Pune contains 110 for Amazon Now, 434 for Blinkit and 544 in its row total. Nashik has 360 for Blinkit and no Amazon Now record in this export. The two included cities' recorded amounts total 904. The source can still hold all six cities and its overall total 2870.
Make a count view with the same city and platform choices. Pune and Nashik account for six source records. Pune's four break into one Amazon Now and three Blinkit. Nashik's two are both Blinkit. This count view explains which underlying population a figure such as 360 covers. It also verifies the blank Amazon Now intersection for Nashik without trying to interpret a display option.
Answer a platform lead's local question
The Blinkit lead wants a short table of total recorded amount by city for delivered orders only. Put Platform in Filters and select Blinkit. Put Status in Filters and select Delivered. Under these settings the applicable source records are 64 and 150 in Pune, 270 and 90 in Nashik, and 1299 in Solapur. Give the reader that context near the report. The totals 214, 360 and 1299 combine to 1873 and reflect five recorded orders.
Compare that table with a version that displays Status in Columns under the same Blinkit selection, allowing all statuses. The platform lead can now see the differences between Delivered and Cancelled at the same time. A city row such as Pune displays 214 delivered and 220 cancelled, or 434 total. Nagpur has 240 cancelled and no delivered records in the fixture. The switch from a single selected status to a status breakdown changes what someone can read without reapplying a filter.
- Read the report title. Include the platform and status scope for a narrow view. A copied title called City totals leaves the reader guessing which of the two views was exported.
- Check the other context. In a copy, remove only the platform filter while keeping Delivered. The full delivered amount should become 2215 because Amazon Now contributes 342. Verify that change with the source groups.
- Restore the base data. Clear both report filters and the city filter on the scratch reports when testing is done. The full source amount and count should still verify to 2870 and ten.
In a recurring workbook the two reviews can coexist. Keep their actual sources, scope and value operations clear. A person reading only one should be able to compare a highlighted cell with the source data and understand the current filter set. Matching style is useful once the underlying meanings are verified.
Compare reports by their labels before comparing their numbers
Check the cell identity after moving labels
Suppose a scratch report starts with columns for Amazon Now and Blinkit, and a city item for Pune. Your comparison spreadsheet records the cell's lookup address and the amount 434. If you swap the column layout or add another field, that address can point to a different measure. The reliable identity is Pune, Blinkit, all statuses and Sum of Amount. This is a useful paper exercise even before you learn a formula to retrieve a PivotTable value.
Write down two such identities from the initial report. Keep the full city, platform and status context. Move the fields so that Platform and City are both in Rows. Find each amount again with the full labels. If the amounts no longer agree, check the report's filters and summary selection before correcting the source. Next, repeat the comparison with two fixtures that have the same city names but different included dates. A matching label is only one part of scope.
Document filters at the right level
Mistakes often happen after a teammate clicks through several scopes in quick succession. A field dropdown may show that there is an active selection without showing every included item at a glance. Keep a scratch log for the variations you test. For each one list the report filter choices and any active filters attached to its rows or columns. Record whether an expand or collapse action only hides subgroups visually. Perform the independent source check under those same conditions.
The first test records all statuses and both platforms. The second applies Delivered. The third makes a visual layout change while keeping the last filter. The fourth also applies Blinkit. Their check amounts are respectively 2870, 2215, 2215 and 1873 if no other settings change. Place the independent order counts alongside them. The unchanged middle amount helps prove that the layout movement alone has preserved membership.
Make an absent group a diagnostic question
Nagpur does not contribute under Delivered in this original fixture because its one order is Cancelled. If a report option still lists the category without data, inspect its cell and matching source row count. If the label is completely absent, the same source check explains why. The options for showing items with no data vary with report configuration and source. Do not reconstruct a supposed zero measurement just from the absence of the label.
Compare that to an intentional test where you set one property's report label to the wrong field, such as using Platform instead of City in Rows. Now the labels in the output are platform names. Nagpur's missing label says nothing about its delivered history. The mismatch points to field placement. Read the group header first, then the active filter, and finally the source record counts.
What should the check amount do when you only turn a side-by-side layout into a nested one?
Compare the same filtered source and summary operation. Under Delivered, the expected included amount is still 2215. Check that no other selection changed.
Check your understanding
1. Which layout displays platforms side by side for each city?
A. City in Rows and Platform in Columns. B. City and Platform both in Values. C. Platform only in Filters.
Answer A. City items appear down the page and platform items appear across. Add a measure such as Sum of Amount in Values.
2. What does the filter Status = Delivered change?
A. The underlying source amounts. B. The set of records included across the report. C. The definition of Sum.
Answer B. It selects the report population. The original cancelled and returned records remain in the source.
3. Why can two visible Pune rows be correct?
A. The source contained one statistic only. B. All totals should repeat. C. Pune can appear under two parent platform groups.
Answer C. Read the complete row hierarchy to know which group each result summarises.
4. Which amount represents Pune and Blinkit after filtering Delivered?
A. 214. B. 434. C. 544.
Answer A. 64 and 150 match all three conditions. 220 belongs to Cancelled and 110 belongs to Amazon Now.
5. What is a useful control for an empty-looking combination?
A. Make the cell darker. B. Count its matching source records. C. Add the row and column grand totals.
Answer B. Counts and an exact source check help distinguish a missing combination from a genuinely observed zero.
6. What does putting Amount in Rows usually display in this example?
A. One global total only. B. A filter for every city. C. Amount values as category labels.
Answer C. Put the field in Values with Sum when the goal is to add the matching numbers.
Interview questions with explained answers
- How would you explain the four areas to a teammate?
I give one concrete configuration. City in Rows and Platform in Columns form a grid of groups. Status in Filters selects which source records contribute. Sum of Amount in Values supplies the report's calculation for the actual matching group.
- What makes you put a field in Rows instead of Columns?
I choose the page direction that helps the comparison. Six cities can read naturally down the page and two platforms across. A nested city and platform drill view may be easier with both in Rows. I check totals under the same scope.
- How do you verify an unexpected smaller total?
I check current report and item filters, confirm the source and read the Values operation. I compare the amount and count against source rows matched by the same criteria. In the fixture, 2215 is the intended delivered amount, and 2870 covers all statuses.
- What does Count of Order ID establish on an order-line sheet?
It counts filled field instances in the active scope. Several lines can share the same order ID. I use a distinct-order measure if the question needs unique orders, and I write a separate line count if it helps the reader.
- How would you prepare a tabular export from a nested PivotTable?
I choose an appropriate report form, include any needed repeated parent labels and keep subtotals separate from detail-only rows. I confirm the export still has the intended report grain and labels.
Quick recall cards
- Rows
Choose the group labels that should read down the page.
- Columns
Choose the groups that should be compared across the report.
- Values
Verify the operation and units, including Sum or Count for the shown measure.
- Filters
Read the report's active population before quoting a number.
- Hierarchy
Read the parent and child labels together.
- Empty display
Use source matches to distinguish no recorded group from measured zero.
Continue with Summarize Values By to test the effect of changing the operation while holding the layout and filters constant.
Official Microsoft references
Continue practising: explore the existing Excel Task Hub for additional exercises.