Unit 3.4: Data Visualization & Reporting

--:-- --
↓ Scroll for more

Unit 3.4

Data Visualization & Reporting

PRC 110: Software Skills Practicum

📖 Read the full note

Learning Objectives

  • Choose and build Charts.
  • Summarize with Pivot Tables and Slicers.
  • Link sheets into a dashboard.

1869: six variables in one chart

Charles Minard's 1869 map of Napoleon's march on Moscow

Charts

  • Column/Bar: Compare values.
  • Pie: Parts of a whole.
  • Line: Trend over time.
  • Add title, axis labels, legend.
  • Design tab for styles.

Anatomy of a Chart

  • Chart title: say the message ("West leads sales")
  • Axis titles: what and which unit (Rs)
  • Legend: only if there is more than one series
  • Data labels: exact values where they matter
  • Click the chart → the + (Chart Elements) button to switch parts on or off
  • Chart Design tab: styles, colours, Switch Row/Column
  • Format tab: fills, outlines, text

Quick poll: a chart shows four bars with no title and no axis labels. What does the audience have to guess? → what is measured, the unit, and the point.

Check: Chart Choice

Ask a student or group first — then click to check.

Hands-on: Chart Revenue by Product

  1. Rename the data sheet Data. On a new sheet, put Product / Revenue in A1:B1 and the 8 product names in A2:A9.
  2. B2 =SUMIF(Data!$C$2:$C$241,A2,Data!$G$2:$G$241), fill down. → Laptop 1,97,11,938; Notebook 1,17,202
  3. Sort B Largest to Smallest, select A1:B9 → Insert → Recommended Charts → Clustered Column. → one giant Laptop bar; Mouse and Notebook almost vanish
  4. Add a chart title and axis titles (Chart Elements +).

Laptops are 69.6% of revenue, but Monitors sell the most units (251). Discuss: which chart would a stock manager want?

Quick Poll: What's Wrong Here?

  1. Bar chart of pass rates whose y-axis starts at 95%. → Truncated axis: 96% vs 98% looks like double. Start bars at 0.
  2. 3-D pie with 12 slices. → 3-D tilts the front slices bigger, and 12 slices can't be compared. Use a sorted bar chart.
  3. "Sales collapsed: 2024 = 2,06,29,857, 2025 = 76,76,040." → Our data for 2025 stops on 15 May. Compare the same months, not a full year with 4½ months.
  4. Line chart of revenue by Region. → Regions aren't a time order. Use column or bar.

Rule: the chart must make the honest comparison easy.

Same data two ways

Custom diagram: same data two ways: y-axis from 95% vs from 0% (illustrative pass rates)

Hands-on: Visuals Inside Cells

  1. Select G2:G241 → Home → Conditional Formatting → Data Bars. → a bar inside each cell, scaled to its value
  2. Same range → Conditional Formatting → Top/Bottom Rules → Top 10 Items. → the 10 biggest sales are highlighted
  3. On your product summary, select B2:B9 → Insert → Sparklines → Column, location C2. → a tiny chart in one cell

Clear it again: Conditional Formatting → Clear Rules. Use colour to point at the message, not to decorate.

Pivot Tables & Slicers

Insert → PivotTable — drag fields to Rows / Columns / Values / Filters.

  • Example: Rows = Region, Values = Sum of Sales Amount.
  • Slicer: interactive filter buttons (lab test Set B).
  • Refresh after source data changes.

🎬 Watch: Rows and Values in 50 Seconds

Hands-on: Pivot by Region

  1. Click inside Data → Insert → PivotTable (From Table/Range) → New Worksheet; rename the sheet Pivot.
  2. Region → Rows; Sales Amount → Values. → West 92,25,197 top; Grand Total 2,83,05,897
  3. Right-click a value → Show Values As → % of Grand Total. → West 32.6%, South 25.4%, East 21.6%, North 20.4%
  4. PivotTable Analyze → PivotChart → Column; then Insert Slicer → Product.
  5. Set Values back to Sum, then click Laptop on the slicer. → West Laptop 67,23,705: matches the SUMIFS from Unit 3.3

Changed the source data? PivotTable Analyze → Refresh (Alt+F5); Refresh All is Ctrl+Alt+F5.

Dates in a Pivot: Group and Timeline

  • Drag Date to Rows. Newer Excel groups it into Years / Quarters / Months automatically; otherwise right-click a date → Group → Months + Years.
  • Result: 2024 = 2,06,29,857; 2025 = 76,76,040 (data ends 15 May 2025).
  • PivotTable Analyze → Insert Timeline → Date: a sliding date filter, like a slicer for time.

Discuss: your manager sees the 2025 total and asks why sales fell. What do you show them? → Jan–May 2025 vs Jan–May 2024, using the Timeline.

Dashboards: pivots on a wall

A network operations centre with wall dashboards

Linking Worksheets

  • Dashboard cell: =Pivot!B4 or =Employees!G12.
  • Keep source + dashboard in one workbook for class submissions.

Linking to a Pivot: GETPIVOTDATA

  • On a Dashboard sheet, type = and click the West total in the pivot. Excel writes:
    =GETPIVOTDATA("Sales Amount",Pivot!$A$3,"Region","West")
  • It still finds West after you sort, filter or rearrange the pivot. A typed =Pivot!B4 just points at whatever lands in B4.
  • To get plain links instead: PivotTable Analyze → Options ▾ → untick Generate GetPivotData.
  • Links to another file look like =[Budget.xlsx]Sheet1!$B$4. They break if that file is renamed or moved.

Poll: sort the pivot Z→A, then check. Which link still shows West? → GETPIVOTDATA

Check: Pivot & Links (1/2)

Ask a student or group first — then click to check.

Check: Pivot & Links (2/2)

Ask a student or group first — then click to check.

1858: a chart that changed hospital policy

Florence Nightingale's 1858 rose diagram of army deaths

Real Cases: Charts That Changed Minds

  • Florence Nightingale, 1858: her "rose" diagram showed that far more soldiers in the Crimean War died of preventable disease than of wounds. It helped win army sanitation reforms.
  • John Snow, London 1854: he mapped cholera deaths, which clustered around one water pump on Broad Street.
  • Hans Rosling, 2006 onward: animated bubble charts of countries' wealth and health, watched by millions.

Pairs: which Excel chart is closest to each? → Nightingale: stacked column by month · Snow: a map (Excel's Filled Map works at country/region level only) · Rosling: Bubble chart (Insert → Scatter → Bubble)

1854: the dots pointed to one pump

John Snow's 1854 cholera map of Soho, London

🎬 Watch: Hans Rosling's Bubble Chart

Practicum 3.4

Sales dashboard

Use sales_data_large.csv:

  1. Column chart by Product.
  2. Pivot by Region + Pivot Chart + Slicer.
  3. Dashboard sheet with linked totals.

Unit 3 Full Assignment

Peer Review: Is Your Dashboard Ready?

Swap laptops with a neighbour for 2 minutes and tick each item.

  1. The title states the message, not just "Dashboard".
  2. Total Sales is linked, not typed: =SUM(Data!G2:G241) → 2,83,05,897.
  3. One chart per question, with axes labelled, no 3-D, and sorted bars.
  4. The slicer controls every pivot: right-click it → Report Connections.
  5. The data source and its date range (Jan 2024 – May 2025) are noted.

Fix your weakest item before you submit the Unit 3 assignment.

Credits

  • Image: Minard's map of Napoleon's Russian campaign (1869) — Charles Minard (1781–1870), Public domain, via Wikimedia Commons (source)
  • Image: same data two ways: y-axis from 95% vs from 0% (illustrative pass rates) — Made for PRC 110, CC BY 4.0
  • Image: Batelco Network Operations Centre — Masdestructive, CC BY-SA 3.0, via Wikimedia Commons (source)
  • Image: Florence Nightingale's diagram of the causes of mortality — Martineau, Harriet Nightingale, Florence, Public domain, via Wikimedia Commons (source)
  • Image: John Snow's cholera map (Wellcome Collection) — , CC BY 4.0, via Wikimedia Commons (source)
  • Video: Pivot Table Excel — Kevin Stratvert, YouTube dvbLrwD2SpA, 1:51–2:43
  • Video: Hans Rosling's 200 Countries, 200 Years, 4 Minutes - The Joy of Stats — BBC (official), YouTube jbkSRLYSojo, 0:30–1:57
  • Sample data: sales_data_large.csv — PRC 110 sample pack

Thank You

Questions? Finish the dashboard and submit the Unit 3 assignment.

PRC 110: Software Skills Practicum · Unit 3.4