Excel pivot tables are very useful and powerful feature of MS Excel. They are be used to create instant summaries, reports and data analysis from your raw data.
In this page, learn all about how to create an Excel pivot table and customize it.
Table of Contents
What are Excel Pivot Tables?
A pivot table turns your data into report format. Here is a sample Pivot table from sales data, showing total sales by region.
How to create a Pivot Table?
We will use 2019 sales data of a fictional company. This data contains 466 rows of sales information in columns – Month, Salesman, Region, Product, No. Customers, Net Sales, Profit / Loss. Here is a preview of our data.

Download the sample data & example pivot tables here.
To create a pivot table showing totals sales by region, follow these steps.
- Select any cell in the data.
- Go to Insert ribbon and click “Pivot Table” button.

- Click ok on the next screen.

- You will be taken a new spreadsheet with blank Pivot Table canvas. Here, using the Pivot Table Fields panel set “Regions” field to row label area, “Products” to “Filter” area and “Net Sales” to values area. See below illustration.

Your pivot table will be ready. We can see that “West” is our best region. This is why Pivot tables are easy for finding answers to common business questions.
Two dimensional Pivots - Row & Column fields
You can add fields to both “Row” and “Column” label area of a pivot. Such Pivot Tables are normally called two dimensional pivots. Here is a demo of a two dimensional pivot table showing Total Sales by Region & Sales Person.

Multi-dimensional Pivots - Row & Column fields
You can also add more than one item to “Row” or “Column” label area. This creates a multi-dimensional Pivot Report. Here is one such pivot report showing total sales by Region, Sales Person & Product for selected months.

How to format Pivot Table values?
By default, numbers in Pivot Tables tend to just look like zip codes, without any proper formatting. This is easy to fix though. Simply right click on the values and use “Value Field Settings” to set up the formatting. To set currency formatting for our Total sales by region Pivot Report,
- Go to value field settings
- Click on Number Format button
- Set up the formatting to “Currency”
- Done.
See this illustration.

Sorting in Excel Pivot Tables
You can easily sort pivot report by ascending or descending order of the value. To do this, just right click on the value, select Sort > and specify the order.
Here is an example of sorted pivot report of Number of customers by Sales person.

Filtering Excel Pivot Tables
You are looking at Regional total sales and want to know what the total is for just “RapidZoo” product. You can do this by filtering the pivot table. Excel offers two powerful ways to filter Pivot Tables
- Report filters
- Slicers
Both methods are illustrated below. Read on to learn how to use them.

Filtering with Report Filters
Report filter is a great way to restrict the data that is flowing to your pivot. To set them up, just add the field to “Filters” area in the fields panel. Now, using the filter button next to “Product”, select the product you want.
Here is a quick demo of report filters in action.

Filtering with Slicers
There are a ton of cool features in Excel Pivot Tables, but slicers are hands-down the best feature. At-least, that is what I think. They make filtering and ad-hoc data analysis a breeze.
A slicer is a visual filter. You can add a slicer on any field by right clicking on it from the fields panel. See the illustration “Adding filters to a pivot report” from above.
Once you have a slicer on Product, simply click on any product name to see the report for that.
Here is a quick demo of Pivot Table with slicers.

Other kinds of filtering - Value & Label Filters
Apart from report filters & Slicers, Pivot Tables also allow you to filter by a field or value.
Field or Label Filter: If you don’t want to see “Middle” region in a row label area, just click on the filter button next to “Row Labels” and uncheck the region. This type of filtering is called Label Filtering.
Value Filter: If you want to see just the top 2 regions by total sales, then you need a value filter. Simply go to filter button next to row labels and using value filters, apply a top 10 filter but set it to top 2 values by “Sum of net sales.”
Changing Calculations in Pivot Tables
The default calculation in Pivot Tables is SUM for number fields and COUNT for all others. But you can also customize the calculation easily. Just right click on the value field and choose different type of summary from right click menu.
Changing from SUM to AVERAGE in a Pivot Table
Here is a quick illustration of how to change calculation type from “SUM” to “AVERAGE”.

Pivot Table Layouts & Colors
By default, Excel Pivot Tables are in compact layout. This means, if you add multiple fields to row label area, they will all be shown in same column, with indentation.
You can change the layout of a pivot table to other formats too.
- Compact form (default)
- Outline form
- Tabular form
You can change the layout from Pivot Table Design ribbon.

Here is an example of same Pivot Table in both Compact and Tabular layouts.

Styling & colors of Excel Pivot Tables
You can apply any formatting to the pivot tables. MS Excel has some very good pivot table styles. Just select pivot table cells, go to Pivot Table Design ribbon. See below image to understand various options available.

Visualizing with Pivot Charts
You can use Pivot Charts to visualize the same information in a graphic format. Here is a sample Pivot Chart of Net Sales by Region & Product.

Steps for creating a Pivot Chart:
- Select any cell in the Pivot Table.
- Click on Insert > Chart or Analyze > Pivot Chart button.
- Insert the type of chart you want.
- You will get a Pivot Chart.
Interactive Pivot Chart with Slicers
Slicers make it incredibly easy to create interactive charts. Once you have a regular Pivot Chart, simply add a slicer to it (right click on the field in “Pivot Table Fields” area and select “Add as Slicer”). You now have an interactive Pivot Chart.
Here is a demo of interactive Pivot Chart.

Updating Pivot Tables (Refresh)
Whenever you have new data, just use “Refresh” button to update your Pivot Tables. You can find this button in multiple places.
- Data ribbon
- Pivot Table Analyze ribbon
- On right clicking any Pivot Table
- By pressing ALT+F5 (refreshes single pivot) or CTRL+ALT+F5 (refreshes all pivots)
What if you want to point Pivot to new data?
Select any cell in the Pivot Table and from Analyze ribbon, use the “Change Data Source” button. Point input data to a new source. As long as the new data has same fields, everything will work smoothly.
Pivot Tables in Excel - Complete video tutorial
I have made a 21 minute video explaining how to create, format, customize, visualize, filter and refresh Pivot Tables. This video is packed with many tricks, ideas and inspiration. Check it out below.
Download - Sample data & example Pivot Tables
Please click here to download the sample file for this article. It contains fictional sales data, several example pivot tables, charts and additional resources.
Examine the pivot table settings and use the data to learn more.
Next Steps
Now that you are familiar with Pivot Tables, explore these additional pages to learn more about data analysis & reporting.
Beginner:
- Pivot Table from multiple tables – Data Model & Relationships
- Number and Percentages in same Pivot
- 5 Pivot tables to try when you have too much data
- Sub-totals but only on one level
- Distinct count in Excel Pivot Tables
- How to use Report Filters
Intermediate & Advanced Users:
- All you need to know about Slicers
- 6 Time Saving Pivot Table Tricks
- Advanced Pivot Table Tricks
- Conditional formatting for Pivot Tables
- Introduction to GETPIVOTDATA
- Getting started with Power Pivot – Percentage of something calculation example
Recommended Websites & Books:
These are my favorite places to learn more about Pivot Tables.
Websites:
- Excel Pivot Tables page on Contextures
- Pivot Table tips from Excel Jet
- 50 things you can do with Pivot Tables from MyExcelOnline
Books:
- Excel Pivot Table data crunching by Bill Jelen
- MS Excel Data Analysis and Business Modeling by Wayne Winston
- Excel Bible by J Walkenbach
Courses:
Happy Learning.

















18 Responses to “Best Charts to Compare Actual Values with Targets – What is your take?”
Great post. I can't vote, though, because the answer I want to put down is "it depends". As with all visualisations, you've got to take into account your audience, your purpose, technical skills, where it will be viewed, etc.
I'm with Andy: It depends. Some I would use, some I might use, some I won't touch with a barge pole.
Naturally I have comments 🙂
The dial gauge, though familiar, is less easy to read than a linear type of chart (thermometer or bullet). It's really no better than the traffic lights, because all it can really tell you is which category the point falls in: red, yellow, or green.
By the same token, pie charts are so familiar, people don't know they can't read them. Remember how long it takes kids to learn to read an analog clock?
Bullet charts don't show trends.
With any of the charts that have a filled component and a marker or ine component, it makes more sense to use the filled component (area/ column) for target, and the lines or markers for actual.
[...] Best Charts to Compare Actual values with Targets (or Budgets … [...]
I voted for #6 even though I agree with the other comments that it depends.
The majority of the votes are for the #2, thermometer chart. I still have yet to understand what happens when you are above plan/goal, which was brought up in yesterday's post.
Also, I agree with Jon in that it would be better to flip the series and make the filled part the target or goal and the line or marker the actual.
I am also a fan of using text when appropriate if the data is among other metrics in a type of dashboard. Calling it out by saying actual and % achievement is a good option.
Another "it depends" vote. Are you just looking at one or are you comparing a number of targets with actuals? You didn't include a text box. The problem with sentences is that they can get lost in a page of gray text. A text box can call attention to the numbers and line them up effectively.
I'm with Jon: "Some I would use, some I might use, some I won’t touch with a barge pole" and I'm surprised that some of your readers voted for the last group.
Jon says:
With any of the charts that have a filled component and a marker or line component, it makes more sense to use the filled component (area/ column) for target, and the lines or markers for actual.
Why does this make more sense? I like 6 the way it is, although I would use a heavy dash for the plan/target marker.
"It depends" is also my take. What I usually try to drill into my clients dashboard design is the fu ndamental difference between spot results (am I on target for this month) and long term trends.. I always try to create 3 different set of graphs to represent real perormance:
- spot results vs objectives
- cumulative results vs objectives
- long-term trend (moving average) mostly) to see where we're going
[...] Best Charts to Compare Actual Values with Targets – What is your take? (tags: excel charts) [...]
[...] Related: Charting Principles, How to compare actual values with budgets [...]
[...] Excel Charting Alternatives to compare values [...]
Jon says:
With any of the charts that have a filled component and a marker or line component, it makes more sense to use the filled component (area/ column) for target, and the lines or markers for actual.
Why does this make more sense? I like 6 the way it is, although I would use a heavy dash for the plan/target marker.
I totally agree, Bob. I would normally favour a line for the target and a column for the actual, you can see quite easily then which columns break through the line, then.
[...] best charts to compare actual values with targets — den Status mal anders zeigen, z. B. als Tacho [...]
Thermometer charts: "Not appropriate when actual values exceed targets" - this is easily solved by making the "mercury" portion a different color from the border, then you can clearly see where the expected range ends and the actual values keep going.
People seem to knock gauges quite a bit in dashboarding, but trying to show comparison of realtime data between operating sites and targets for each site can easily be done with a bank of gauges that have the optimal operating points at 12 o'clock.
The human eye is great at pattern stripping, and any deviation of a gauge from the expected 12 position will quickly register with an operator and attract his attention. Using a colour background, or meter edge, will also indicate the sensitivity of a particular site.
[…] Best charts to compare actual with target values […]
[…] Best charts to compare actual with target values […]
[…] work laptop I have a favorites folder just dedicated to Excel charts. Its got things like “Best Charts to Compare Actuals vs Targets” and “Best charts to show progress“. I love me some charts […]
I am wondering how will the plotting work, for some of the targets which may have been achieved before time. E.g. for the month of Jul the target was 226 and the actual was 219. So the chart will show a deficit in meeting the target by 7 points but what if this 7 may have been completed earlier in month of June. So ideally it not a deficit.