π― Exercise 04: Multi-Dimensional Pivot Table Architecture & Business Reporting
You are the Senior Commercial Analyst for a multinational retail distributor. Your executive team needs answers across two business operations:
- International Fresh Produce Operations (
Sample Data): Understand category market share (Fruit vs. Vegetables) across 7 international territories, analyze monthly sales pacing, and build automated country summary tabs. - Domestic Enterprise Retail Operations (
Retail_part_1&Retail_part_2): Analyze regional profitability across 40,000 transactions, create custom Calculated Fields, and resolve multi-source data integration challenges.
π οΈ Lab Prerequisites & Dataset
- Workbook: Open
11_Demos_and_Workbooks/05_Pivot_Tables/Module_5_Demo.xlsx. - Target Sheets:
Sample Data(216 orders inTable2),Retail_part_1,Retail_part_2(40,000 transactions). - Mindmap Blueprint: Refer to the 6 branches of
assets/module_5_pivot_tables_mindmap.png.
π Challenge Level 1: Clean Table Initialization & 2D Matrix (Warmup)
Business Context:
The VP of Global Operations wants to see total revenue grouped by Country (Rows) and Category (Columns).
Step-by-Step Instructions:
- Navigate to sheet
Sample Data. Click any cell insideTable2($A3:J218$). - Use the keyboard sequence
Alt + N + Vto create a Pivot Table on a New Worksheet. - Immediately rename the Pivot Table to
pt_CategoryByCountry(PivotTable Analyze > PivotTable Name). - Drag
Countryto the Rows quadrant. - Drag
Categoryto the Columns quadrant. - Drag
Amountto the Values quadrant. - Format the values as Currency (
$#,##0) using Value Field Settings > Number Format. - Apply Tabular Form (Design > Report Layout > Show in Tabular Form).
- Right-click the Pivot Table > PivotTable Options > uncheck
Autofit column widths on update.
- Grand Total Revenue must evaluate to exactly
$598,380. - US total revenue must be
$121,430($58,940 Fruit + $62,490 Vegetables).
π Challenge Level 2: Advanced "Show Values As" & Percentage Shares
Business Context:
Raw dollars do not reveal whether Fruit or Vegetables dominates in each country. The VP requests a percentage breakdown of product mix per country.
Step-by-Step Instructions:
- In
pt_CategoryByCountry, dragAmountinto the Values quadrant a second time. - Right-click the second amount column > select Value Field Settings....
- Change Custom Name to
% Category Mix. - Switch to the Show Values As tab and select
% of Row Total. - Click OK.
- For Australia: Fruit must be
45.6%, Vegetables54.4%, Row Total100.0%. - For Canada: Fruit must be
55.2%, Vegetables44.8%, Row Total100.0%.
π Challenge Level 3: Chronological Grouping & MoM Variance Pacing
Business Context:
The finance committee needs a monthly revenue progression report showing the month-by-month dollar growth and running annual total.
Step-by-Step Instructions:
- Insert a new Pivot Table from
Table2namedpt_MonthlyPacing. - Place
Monthon Rows. Ensure the chronological order is:July,August,September,October,November. - Add three instances of
Amountinto Values:- Instance 1: Name:
Monthly Revenue, Format:$#,##0, Calculation: No Calculation. - Instance 2: Name:
Cumulative YTD, Format:$#,##0, Calculation:Running Total In(Base Field:Month). - Instance 3: Name:
MoM Growth %, Format:0.0%, Calculation:% Difference From(Base Field:Month, Base Item:(previous)).
- Instance 1: Name:
- August MoM Growth %:
+33.6%($112,650 vs $84,320). - September MoM Growth %:
-12.6%($98,410 vs $112,650). - November Cumulative YTD:
$598,380.
π Challenge Level 4: Enterprise Calculated Fields & Profit Margin (Retail_part_2)
Business Context:
Switch to the 40,000-transaction Egyptian retail dataset in sheet Retail_part_2. The Chief Financial Officer wants to audit regional profitability across 8 governorates and compute the aggregate Profit Margin.
Step-by-Step Instructions:
- Navigate to sheet
Retail_part_2. - Convert range $A1:E40001$ into an official Excel Table named
RetailSales(Ctrl + T). - Press
Alt + N + Vto insert a Pivot Table namedpt_RegionalProfit. - Drag
Regionto Rows. - Drag
SalesAmountandProfitto Values. - Create a custom metric:
- Go to PivotTable Analyze > Fields, Items & Sets > Calculated Field.
- Name:
Profit_Margin - Formula:
= Profit / SalesAmount
- Click Add and OK.
- Format
Profit_Marginas Percentage (0.0%). - Generate an audit log of your formula using PivotTable Analyze > Fields, Items & Sets > List Formulas.
- Total company-wide sales across all 40,000 orders:
$369,000,910 EGP. - Total company-wide profit:
$51,660,127 EGP. - Overall Profit Margin across all governorates: exactly
14.0%.
π Challenge Level 5: Dashboard Slicers & Automated Report Filter Pages
Business Context:
The CEO requires an interactive dashboard with country and category slicers, plus seven separate exported worksheets for regional country directors.
Step-by-Step Instructions:
- Return to your
pt_CategoryByCountrysheet. - Insert a Slicer for
Countryand a Slicer forCategory(PivotTable Analyze > Insert Slicer). - Reformat the
Countryslicer to 4 Columns using the Slicer ribbon tab. - Verify that holding
Ctrlallows selecting multiple countries (Canada+US). - The Report Filter Pages Automation:
- Drag
Countryfrom Rows into the FILTERS quadrant. - Place
Producton Rows andAmounton Values. - Go to PivotTable Analyze > Options (dropdown) > Show Report Filter Pages....
- Select
Countryand click OK.
- Drag
- Result Inspection: Verify that Excel instantly generated seven distinct worksheets (
Australia,Canada,France,Germany,New Zealand,UK,US), each filtered to that country's specific product sales!
π‘ Solutions & Verification
Full step-by-step walkthroughs, formula explanations, and troubleshooting tips are documented in: π Ex04 Solutions