Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
← Pivot Tables in Excel · Lesson 11 of 13

Module Ten

📖 Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
11
Module 10: Advanced PivotTable Features and Analysis

Module 10: Advanced PivotTable Features and Analysis

Introduction

Welcome to Module 10! So far, you have learned how to create PivotTables, calculate totals, sort information, apply filters, use Slicers, and create PivotCharts.

In this module, we will explore some more advanced PivotTable features. These features help you discover useful information from your data and answer important business questions.

Imagine that you help manage a supermarket in Ibadan. The manager wants to know which products are selling well, which branches are performing best, and how sales have changed over time.

Instead of checking hundreds or thousands of transactions one by one, you can use advanced PivotTable features to find answers quickly.

What you will learn:
  • How to show values as percentages.
  • How to compare results with previous periods.
  • How to use calculated fields.
  • How to create running totals.
  • How to use the Show Details feature.
  • How to analyse business performance using PivotTables.

1. Showing Values as Percentages

Sometimes, knowing the total sales is not enough. A business manager may also want to know what percentage of total sales came from each product or branch.

For example, imagine a supermarket made ₦1,000,000 in total sales during one month.

Product Sales Percentage of Total Sales
Rice ₦400,000 40%
Cooking Oil ₦300,000 30%
Milk ₦200,000 20%
Bread ₦100,000 10%
Total ₦1,000,000 100%

This report tells us that rice contributed 40% of the supermarket's total sales.

How to Show Values as Percentages

  1. Create a PivotTable showing total sales by product.
  2. Drag the Sales field into the Values area.
  3. Right-click any sales value in the PivotTable.
  4. Select Show Values As.
  5. Choose % of Grand Total.
  6. Excel will display each product's share of the total sales.
Remember: The Grand Total represents all the values included in the PivotTable report. If you apply a filter, the percentage calculations may change based on the displayed data.

2. Comparing Results with Previous Periods

Businesses often compare their performance over different months or years.

For example, a supermarket manager may want to compare January sales with February sales.

Month Sales
January ₦500,000
February ₦650,000
March ₦700,000

From this report, we can see that sales increased from January to February.

Excel can also calculate the difference between one month and another using the Show Values As feature.

How to Calculate the Difference from the Previous Month

  1. Create a PivotTable using a valid Date field and Sales field.
  2. Group the dates by Months and Years if necessary.
  3. Place the Sales field in the Values area.
  4. Drag the Sales field into the Values area a second time.
  5. Right-click a value in the second calculation.
  6. Select Show Values As.
  7. Choose Difference From.
  8. Set the Base Field to Month and the Base Item to (previous).

Excel will calculate the difference between each month and the previous month.

Important: When comparing months across multiple years, include the Year field in your PivotTable. Otherwise, January from different years may be combined.

3. Understanding Calculated Fields

A calculated field allows you to create a new calculation using existing fields in your source data.

Imagine that a supermarket records the quantity of products sold and the selling price of each product.

You can use a calculated field to estimate total sales using:

Total Sales = Quantity × Unit Price

For example:

Product Quantity Unit Price Total Sales
Rice 10 ₦5,000 ₦50,000
Milk 20 ₦2,000 ₦40,000

How to Create a Calculated Field

  1. Click anywhere inside your PivotTable.
  2. Open the PivotTable Analyze tab.
  3. Look for Fields, Items & Sets.
  4. Select Calculated Field.
  5. Enter a name such as Total Sales.
  6. Enter a formula using the available field names.
  7. Click Add or OK, depending on your Excel version.

Example formula:

= Quantity * UnitPrice

Important: A traditional PivotTable calculated field works with the underlying source fields and has limitations when calculating averages, ratios, and other complex measures. If your data contains an individual Sales Amount for every transaction, summing that field is often simpler and more reliable.

4. Creating Running Totals

A running total is a calculation that keeps adding values as you move down a list.

Imagine that a business records these monthly sales:

Month Monthly Sales Running Total
January ₦100,000 ₦100,000
February ₦150,000 ₦250,000
March ₦200,000 ₦450,000
April ₦100,000 ₦550,000

The running total shows how much the business has earned from January up to each month.

How to Create a Running Total in a PivotTable

  1. Create a PivotTable with Month in the Rows area.
  2. Place Sales in the Values area.
  3. Drag Sales into the Values area a second time.
  4. Right-click a value in the second calculation.
  5. Select Show Values As.
  6. Choose Running Total In.
  7. Select Month as the Base Field.

Excel will display the accumulated sales for each month.

5. Exploring Source Records with Show Details

Sometimes, you may see a large number in a PivotTable and want to know which transactions created that number.

Excel has a feature called Show Details, also known as drill-down.

For example, your PivotTable shows that the Ibadan branch made ₦500,000 in sales. You want to see the individual transactions behind that total.

How to Show Details

  1. Open your PivotTable.
  2. Find the total you want to investigate.
  3. Double-click the value.
  4. Excel creates a new worksheet containing the underlying records used to calculate that value.
Example: If you double-click the Ibadan branch's sales total, Excel may display the individual sales transactions that contributed to that amount.

You can use this feature to investigate unusual sales figures, check transactions, and understand where a total came from.

6. Using Top 10 Analysis

Top 10 analysis helps you identify the highest-performing products, branches, employees, or customers.

Imagine that a supermarket has 50 products. The manager wants to identify the 5 products that generated the highest sales.

How to Find the Top 5 Products

  1. Create a PivotTable showing Products and Total Sales.
  2. Open the drop-down arrow beside the Row Labels or Product field.
  3. Select Value Filters.
  4. Choose Top 10.
  5. Change the number from 10 to 5.
  6. Choose Items and select Sum of Sales as the value field.
  7. Click OK.

Your PivotTable will display the five products with the highest sales.

Business example: A supermarket in Lagos can use Top 5 analysis to identify its best-selling products and plan which items to restock.

7. Using Bottom 10 Analysis

Bottom 10 analysis helps you identify the lowest-performing items.

For example, a supermarket may want to find the five products with the lowest sales.

How to Find the Bottom 5 Products

  1. Open the Product field drop-down menu.
  2. Select Value Filters.
  3. Choose Top 10.
  4. Change the selection from Top to Bottom.
  5. Enter 5 Items.
  6. Select Sum of Sales.
  7. Click OK.

This helps the manager identify products that may need better promotion, improved placement, or further investigation.

Remember: Low sales do not always mean a product should be removed. Check stock availability, prices, seasonality, and customer demand before making a decision.

8. Using Multiple Data Fields for Deeper Analysis

You can combine different fields in one PivotTable to answer more detailed questions.

For example, instead of showing only total sales by product, you can analyse sales by branch and product.

Branch Product Sales
Ibadan Rice ₦200,000
Ibadan Milk ₦100,000
Lagos Rice ₦300,000
Lagos Milk ₦150,000

You can arrange the fields like this:

  • Rows: Branch and Product.
  • Columns: Payment Method.
  • Values: Sum of Sales.
  • Filters: Year.

This arrangement can help you compare products, branches, payment methods, and years in one report.

9. Understanding the Data Model and Relationships

Sometimes, business information is stored in different worksheets or tables.

For example, a supermarket may store:

  • Sales transactions in a Sales table.
  • Product names and categories in a Products table.
  • Branch names and locations in a Branches table.

Instead of combining everything into one large table, Excel can use the Data Model to connect related tables.

What Is a Data Model?

A Data Model is a collection of related tables that can be analysed together.

For example, the Sales table may contain a Product ID, while the Products table also contains a Product ID.

Excel can use these matching IDs to connect the tables.

What Is a Relationship?

A relationship connects two tables using a common column, such as Product ID or Branch ID.

For example:

Sales Table Products Table
Product ID: P001 Product ID: P001
Quantity: 10 Product: Rice
Sales Amount: ₦50,000 Category: Food

Excel can use the Product ID to connect the sales transaction with the product information.

How to Create a Relationship

  1. Convert your datasets into Excel Tables.
  2. Give each table a clear name.
  3. Open the Data tab.
  4. Select Relationships, if available in your Excel version.
  5. Choose New to create a relationship.
  6. Select the related tables and matching columns.
  7. Confirm the relationship.

You can also add tables to the Data Model when creating a PivotTable by selecting the option to add the data to the Data Model.

Important: Relationships work best when the matching column on the lookup side contains unique values. For example, each Product ID in the Products table should appear only once. Excel versions and platform support for Data Model features may differ.

10. Introducing Power Pivot

Power Pivot is an Excel tool that helps users work with large amounts of related data.

It allows you to create advanced data models and calculations using a language called DAX.

DAX means Data Analysis Expressions.

For example, a business can use Power Pivot to calculate total sales, profit, and sales growth across different branches.

What Can Power Pivot Do?

  • Work with large datasets.
  • Connect multiple related tables.
  • Create advanced calculations.
  • Build reports using information from different tables.
  • Support more advanced business analysis.

Power Pivot is an advanced Excel feature. Its availability depends on your Excel edition and platform.

Remember: You do not need to master Power Pivot immediately. First, become comfortable creating and analysing ordinary PivotTables.

11. Practical Business Analysis Example

Imagine you work as a junior data analyst for a supermarket with branches in Ibadan and Lagos.

The manager gives you a dataset containing the following information:

  • Transaction ID
  • Date
  • Branch
  • Product
  • Category
  • Quantity
  • Unit Price
  • Sales Amount

Your task is to use advanced PivotTable features to answer these questions:

  1. Which branch generated the highest total sales?
  2. Which product contributed the largest percentage of sales?
  3. What were the monthly sales totals?
  4. Which five products generated the highest sales?
  5. Which five products generated the lowest sales?
  6. What was the running total of sales throughout the year?
  7. Which transactions contributed to the highest sales figure?

After completing the analysis, prepare a short report explaining what you discovered.

12. Common Mistakes and How to Avoid Them

Mistake How to Avoid It
Using the wrong base field for Difference From. Select the correct field, such as Month or Year.
Using text instead of numbers for calculations. Check that numerical columns contain valid numbers.
Creating incorrect calculated field formulas. Check the field names and formula carefully.
Ignoring the Year field when comparing months. Include Year when analysing multiple years.
Using the wrong table relationship. Check that matching columns contain the correct IDs.
Forgetting to refresh the PivotTable. Refresh the report after changing the source data.
Making decisions from low sales alone. Investigate other business factors before deciding.

13. Practical Activity

Activity: Analyse Supermarket Sales

Open your supermarket sales workbook from previous modules.

Complete the following tasks:

  1. Create a PivotTable showing total sales by product.
  2. Display each product's percentage of grand total.
  3. Find the five products with the highest sales.
  4. Find the five products with the lowest sales.
  5. Create a monthly sales running total.
  6. Use Show Details to inspect one sales total.
  7. If your dataset contains Quantity and Unit Price, create a calculated field for sales.
  8. Write five observations about the supermarket's performance.

Expected result: You should have a report that helps a supermarket manager understand sales performance and identify areas that need attention.

Important Terms to Remember

Term Meaning
Percentage of Grand Total Shows each value as a percentage of the overall total.
Difference From Compares a value with another value, such as the previous month.
Calculated Field A new PivotTable calculation created using existing fields.
Running Total A total that keeps increasing as values are added.
Show Details Displays the source records behind a PivotTable value.
Top 10 Analysis Identifies the highest-performing items.
Bottom 10 Analysis Identifies the lowest-performing items.
Data Model A collection of related tables used for analysis.
Relationship A connection between tables using matching columns.
Power Pivot An Excel tool for advanced data modelling and analysis.
DAX Data Analysis Expressions, a formula language used in Power Pivot.

Module 10 Assessment: Test Your Knowledge

Choose the correct answer for each question.

1. What does Percentage of Grand Total show?

A. The number of worksheets in a workbook

B. Each value as a percentage of the overall total

C. The colour of a PivotTable

D. The number of columns in Excel

2. Which Show Values As option can compare a value with the previous month?

A. Difference From

B. Running Total In

C. % of Grand Total

D. Rank Smallest to Largest

3. What is a calculated field?

A. A field that deletes data

B. A new calculation created using existing fields

C. A worksheet heading

D. A chart title

4. What is a running total?

A. A total that keeps accumulating values

B. A total that always stays at zero

C. A list of product names

D. A chart with no values

5. What happens when you double-click a PivotTable value that supports Show Details?

A. Excel closes the workbook

B. Excel deletes the PivotTable

C. Excel displays the underlying records in a new worksheet

D. Excel changes the workbook password

6. Which feature helps you identify the five products with the highest sales?

A. Top 10 Value Filter

B. Freeze Panes

C. Page Layout

D. Spell Check

7. What does a Data Model allow you to do?

A. Draw pictures in Excel

B. Connect and analyse related tables

C. Change your computer password

D. Remove all worksheets

8. What does DAX stand for?

A. Data Analysis Expressions

B. Digital Access Exchange

C. Data Application Extension

D. Document Analysis Excel

9. Why should you include Year when comparing monthly sales across several years?

A. To change the font size

B. To prevent the same months from different years being combined

C. To remove all sales values

D. To hide the PivotTable Fields panel

10. Which Excel tool supports advanced data modelling and calculations?

A. Paint

B. Notepad

C. Power Pivot

D. Calculator

Assessment Answer Key

Question Correct Answer
1B
2A
3B
4A
5C
6A
7B
8A
9B
10C

Module Summary

Well done! You have completed Module 10.

In this module, you learned how to use advanced PivotTable features to analyse business information. You explored percentages, comparisons, calculated fields, running totals, Show Details, Top 10 analysis, Data Models, relationships, and Power Pivot.

These skills can help you turn ordinary sales records into useful business information.

What is next?

In Module 11, you will learn how to build business reports with PivotTables. You will combine summaries, charts, and filters to create reports that help managers make better decisions.

🏆 Get Certified

🔒

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (₦2,000 or 20,000 coins), and get a verified certificate with your name on it.

🎓 Sign Up to Get Certified
🛠️ Practice Tools
Hands-on simulators & labs - subscription required.
→
🎯 Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
→