Google Sheets

Google Sheets Pivot Table Tutorial: Build a Sales Report Step by Step

This Google Sheets pivot table tutorial builds a complete sales report for Summit Ridge Outdoor Supply, a fictional wholesaler in Denver. The data has 480 orders from January to October 2026, with $1,766,417 in revenue and $767,428 in profit. You will end up with four reports and one chart, and you will not need a single SUMIFS formula.

Finished revenue by region and month pivot table in Google Sheets
Finished revenue by region and month pivot table in Google Sheets

⬇️  Join Free on Skool & Download the Practice File
Free membership · takes 1 minute · the file is in Classroom → Free Downloads from YouTube
Free Google Sheet · opens the Make a copy screen

Watch the video tutorial

The video shows the finished report first. Then it builds each pivot table from the raw data, including the date grouping, two calculated fields, the sort order, a percent of total column, a region slicer and a stacked column chart.

What you will build

  • Revenue by region for every month
  • Product profit and margin, sorted so the best earners come first
  • A sales rep scorecard with orders, units and share of total
  • A region slicer for the scorecard
  • A revenue by quarter and category chart

The sales data

The Sales Data tab has one row per order, with the header in row 4 and data through row 484. The columns are Order ID, Order Date, Region, Sales Rep, Customer, Category, Product, Units, Unit Price, Revenue and Cost. The order dates are real dates, which matters when you group them later.

Sales Data tab with 480 orders
Sales Data tab with 480 orders

Step 1: Create the pivot table

Click the Order ID header, then press Ctrl Shift Down and Ctrl Shift Right to select the table. Open Insert and choose Pivot table. Check that the range reads 'Sales Data'!B4:L484. Choose Existing sheet, pick cell B10 on the first practice tab and click Create.

Create pivot table dialog with the sales data range
Create pivot table dialog with the sales data range

Step 2: Revenue by region and month

In the editor, add Region to Rows, Order Date to Columns and Revenue to Values. At first you get one column for every day. Right click any date, choose Create pivot date group, then Month.

West leads with $542,119, followed by East at $477,394, South at $418,818 and Central at $328,086. June was the strongest month at $242,226. Central sold only $9,280 in July, a gap that is easy to miss in a long list of orders.

Pivot table grouped by month for four regions
Pivot table grouped by month for four regions

Month grouping adds the same month from different years together. If your data runs over several years, choose Year-Month.

Step 3: Product profit with calculated fields

Create a second pivot table on the next tab. Add Category and then Product to Rows. Add Revenue and Cost to Values. The data has no profit column, so open Values, Add, Calculated Field. Name it Profit, set Summarize by to Custom and enter:

=SUM(Revenue)-SUM(Cost)

Add one more calculated field named Margin %, again with Custom:

=(SUM(Revenue)-SUM(Cost))/SUM(Revenue)

Add calculated field window for the margin formula
Add calculated field window for the margin formula

Format the margin column as a percent with one decimal. Do not summarise a row level margin with SUM, because adding percentages gives a number that means nothing.

Step 4: Sort by profit

In the Category box, set Sort by to Profit and the order to Descending. Do the same for Product. Water Sports has the highest revenue at $558,654, but Hiking makes the most profit at $219,958. The 4-Person Tent is the top product with $109,340 in profit, and the Fleece Pullover has the best margin at 55.1%.

Product profit report sorted by profit
Product profit report sorted by profit

Step 5: Sales rep scorecard

On the third tab, add Sales Rep to Rows. Add Revenue, Order ID and Units to Values. Order ID is text, so Google Sheets counts it with COUNTA, which gives you the number of orders. Add Revenue a second time and set Show as to the percent of total option. Sort Sales Rep by SUM of Revenue, descending.

Olivia Martinez is first with $281,173 from 81 orders, which is 15.92% of the total.

Sales rep scorecard with percent of total
Sales rep scorecard with percent of total

Step 6: Add a region slicer

Click inside the scorecard, open Data and choose Add a slicer. Set the column to Region and drag the slicer next to the table. Filter to West and only Olivia Martinez (51.87%) and Jason Lee (48.13%) remain, with a total of $542,119. The percent column now measures share inside the region. Set the slicer back to all regions when you finish.

Region slicer filtering the scorecard to West
Region slicer filtering the scorecard to West

Step 7: Quarter report and chart

On the fourth tab, add Order Date to Rows, Category to Columns and Revenue to Values. Right click a date and group by Quarter.

Grouping pivot table dates by quarter
Grouping pivot table dates by quarter

Select the quarters and the four categories without the grand total, then choose Insert and Chart. Google Sheets suggests a stacked column chart. Q3 is the largest quarter at $600,569, and Water Sports alone brought in $264,746 of it. Q4 holds only October, so do not compare it with a full quarter.

Stacked column chart of revenue by quarter and category
Stacked column chart of revenue by quarter and category

Pivot table or formulas?

Task Pivot table Formulas
Region by month summary A few clicks About 40 SUMIFS cells
Change the layout Move a field Rewrite the formulas
Fixed report design Limited Full control
Filter for one team Add a slicer Add a criteria cell

Common mistakes to check

  • Dates stored as text cannot be grouped.
  • A range that stops early leaves new orders out.
  • Different ranges on different pivot tables stop the slicer from working on all of them.
  • Sorting by revenue alone can hide which products earn the profit.

Want it ready made?

If you would rather start from a finished report, the Sales KPI Dashboard in Google Sheets is a paid ready-to-use template on Next Gen Templates.

To learn pivot tables, charts and dashboards in order, see the Google Sheets Complete Course. Code NTN-GS20 gives 20% off until 31 December 2026.

Related tutorials

Download the practice file

The file has the raw data, four practice tabs and four solution tabs.

⬇️  Join Free on Skool & Download the Practice File
Free membership · takes 1 minute · the file is in Classroom → Free Downloads from YouTube
Free Google Sheet · opens the Make a copy screen

Frequently asked questions

How do I create a pivot table in Google Sheets?

Select your data including the header row, open Insert, choose Pivot table, pick a new or existing sheet, then add fields to Rows, Columns, Values and Filters in the editor.

How do I group dates by month in a pivot table?

Right click any date inside the pivot table, choose Create pivot date group, then Month. The source column must hold real dates, not text.

How do I add profit to a pivot table when my data has no profit column?

Add a calculated field under Values with the formula =SUM(Revenue)-SUM(Cost) and set Summarize by to Custom.

Why is my margin percent wrong in the pivot table?

A margin column summarised by SUM adds the row percentages together. Use =(SUM(Revenue)-SUM(Cost))/SUM(Revenue) as a calculated field with Summarize by set to Custom.

Why does my slicer not filter the pivot table?

A slicer only filters pivot tables and charts that use the same data range. Use the identical range on every pivot table.

Does the pivot table update when the data changes?

Yes. Changing a value inside the source range updates the pivot table. New rows need to fall inside the range you selected.

Is the practice file free?

Yes. Use the copy button on this page to make your own copy in Google Drive.

Conclusion

One clean data tab is enough for all four reports. Build the pivot tables on the same range, use calculated fields for anything that involves a ratio, and check the totals against the source before you send the report.

PK
Written by PK (Priyendra Kumar)
Microsoft Certified Professional with 15+ years in data analysis, dashboards and automation. Creator of PK: An Excel Expert and NeoTech Navigators on YouTube. About the author
Tested in the real tool · Last reviewed December 3, 2026
PK
Meet PK, the founder of NeotechNavigators.com! With over 15 years of experience in Data Visualization, Excel Automation, and dashboard creation. PK is a Microsoft Certified Professional who has a passion for all things in Excel. PK loves to explore new and innovative ways to use Excel and is always eager to share his knowledge with others. With an eye for detail and a commitment to excellence, PK has become a go-to expert in the world of Excel. Whether you're looking to create stunning visualizations or streamline your workflow with automation, PK has the skills and expertise to help you succeed. Join the many satisfied clients who have benefited from PK's services and see how he can take your data analysis skills to the next level!
https://neotechnavigators.com