Guide · 5 min read

Pivot Tables and Dashboards in Excel

A pivot table turns thousands of rows into a summary in a few clicks. A dashboard puts the most important summaries on one page. Here is how to do both, and to avoid the mistakes that break them.

What pivot tables do

A pivot table summarizes a data list without formulas. You drag fields into four areas and Excel counts, sums or averages the data in the arrangement you choose. You can change the arrangement instantly, which makes pivots ideal for exploring questions: revenue by region, orders by month, average spend by customer type.

Pivot areaWhat it doesExample
RowsCreates one row for each distinct valueRegion
ColumnsCreates one column for each distinct valueQuarter
ValuesThe numbers to summarize and howSum of revenue
FiltersLimits the whole table to a subsetProduct category

Prepare the data first

Most pivot problems come from messy source data. Before you insert a pivot, check these points.

  • One header row Every column has a unique, non-blank heading.
  • One record per row Each row is a single transaction or case, with no totals mixed in.
  • No blank rows or columns A gap in the data can split the range.
  • No merged cells Merged cells break sorting and grouping.
  • Consistent data types Numbers stored as numbers, dates as true dates, and categories spelled the same way.
  • Format as a Table Select the data and press Ctrl + T. The pivot then grows automatically when you add rows.

Clean spelling differences such as North, north and N. before pivoting, or they will appear as separate rows. Our guide on data analysis reports covers documenting your cleaning steps.

Build a pivot table step by step

  1. Click inside the data table and choose Insert, then PivotTable. Pick a new worksheet.
  2. Drag Region to Rows, Quarter to Columns and Revenue to Values. Excel sums by default for numbers.
  3. Check the Value Field Settings to choose Sum, Count, Average, Max or Min, and set a number format.
  4. Add a field such as Product to Filters to look at one product at a time.
  5. Sort rows by value, and turn off any subtotals you do not need.

Result: revenue by region and quarter (hypothetical, $000)

RegionQ1Q2Q3Q4Total
North120135150180585
South9095110120415
East608070100310
Total2703103304001,310

Quick reads from the pivot: North is the largest region with 585, which is 44.7 percent of the total. Q4 is the strongest quarter at 400, which is 48 percent higher than Q1 (400 divided by 270). East dipped in Q3.

Show values as percentages, growth and running totals

The same pivot can answer different questions by changing how values are shown. Right-click a value and choose Show Values As.

SettingWhat it showsExample in the table above
% of Grand TotalEach cell as a share of everythingNorth total is 44.7 percent, South 31.7 percent, East 23.7 percent
% of Row TotalEach cell as a share of its rowNorth's Q4 share is 180 / 585, about 30.8 percent
% of Column TotalEach cell as a share of its columnNorth's share in Q1 is 120 / 270, about 44.4 percent
Running Total InCumulative total across a fieldCumulative revenue by quarter: 270, 580, 910, 1,310
Difference FromChange versus a chosen item or previous periodQ4 versus Q3: +70
% Difference FromPercent change versus a baselineQ4 versus Q1: +48.1 percent

A calculated field lets you add your own measure, such as profit as revenue minus cost, and a calculated item works on categories. Use them sparingly, since they can behave unexpectedly in totals.

Grouping dates and numbers

If your data has transaction dates, drag the date field to Rows. Excel can group it into months, quarters and years. Right-click a date, choose Group and select the levels you need. For numbers, grouping creates bins, such as order sizes in steps of 50. This is how you build a quick frequency table without formulas.

If grouping is unavailable, the usual cause is blank cells or text in the date column. Clean the data and refresh.

Working on this assignment now? Get a price for help with your paper.

Get an instant quote

Slicers, timelines and pivot charts

Slicers are buttons that filter a pivot. Timelines do the same for dates. Select the pivot, choose Insert, then Slicer and tick the fields. Connect one slicer to several pivots by right-clicking it and using Report Connections, so one click filters the whole dashboard. A pivot chart is a chart linked to a pivot, which changes when you filter or rearrange the pivot.

  • Refresh after data changes Right-click the pivot and choose Refresh, or use Data, then Refresh All.
  • Use a table as the source Then new rows are included automatically.
  • Keep pivots on a separate sheet Do not type next to a pivot, as it can resize.
  • Clear or limit the cache Large pivots can slow a workbook, so avoid copying the data repeatedly.

Design a one-page dashboard

A dashboard answers a few questions at a glance. Decide the questions before you design, such as are we growing, where, and what changed. Then follow a simple layout.

ZoneContentsNotes
TopKey figures (KPIs) in large typeTotal revenue, growth versus last period, best region, number of orders
MiddleTwo to four charts, each answering one questionA line chart for trend, a bar chart for comparison
Side or top stripSlicers and timelinesGroup them together and label them
BottomA small table or notesDefinitions and the data source and date
KPIHow to calculate it
Total revenueSum of the revenue field, linked to a cell with =GETPIVOTDATA or a direct formula
Growth versus previous period(This period minus last period) divided by last period
Share of top regionTop region revenue divided by total revenue
Average order valueRevenue divided by number of orders

Put the data on one sheet, pivots on another and the dashboard on a third that only references the pivots. This keeps the dashboard clean. Turn off gridlines on the dashboard sheet, use two or three colors consistently, and align charts to a grid.

Designing a one-page dashboard

AreaContentsTip
Top rowThree to five key numbers (revenue, margin, orders, growth)Compare each with last period or target
MiddleOne trend chart and one breakdown chartSame colors for same categories
BottomA detail table or top and bottom listsSort so the point is obvious
SideSlicers for region, product and periodConnect them to every pivot table
  • Start with the question What decision does this dashboard support?
  • Use fewer charts Five clear charts beat fifteen cluttered ones.
  • Refresh and test Check totals against the source after refreshing.
  • Label units and periods Currency, percent and date range.

Common mistakes

  • Messy source data Blanks, merged cells and inconsistent labels are the main cause of broken pivots.
  • Numbers stored as text They show Count instead of Sum. Convert them to numbers.
  • Forgetting to refresh Pivots do not update automatically when the data change.
  • Too many charts A dashboard with ten charts says nothing. Choose the few that matter.
  • Unlabeled figures Always include units, the period and the data source.
  • Hard-coded numbers Link dashboard figures to pivots or formulas so they stay current.

If you want help building a pivot analysis or dashboard, you can order Excel assignment help.

Quick answers

Why does my pivot show Count of revenue instead of Sum?

Usually because some cells are blank or contain text, so Excel treats the field as text. Clean the column so every cell is a number, then change the setting to Sum.

Do I need to refresh the pivot after I change the data?

Yes. Pivots do not update automatically. Right-click the pivot and choose Refresh, or use Data, then Refresh All.

What is the difference between a pivot table and a normal summary formula?

A pivot lets you rearrange and filter the summary without rewriting formulas. Formulas such as SUMIFS give you fixed layouts, which are useful when a precise format is required.

Can I build a dashboard without pivot tables?

Yes, using formulas and charts. Pivots are quicker for exploration, and formulas give more control over layout.

Why do my pivot totals not match the source?

Common causes are blank or text-formatted numbers, duplicate rows, filters left on, or the pivot range not including new data. Refresh and check the source range.

Need a hand with your paper?

Tell us the assignment and see your price straight away.

Get an instant quote