Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

DA 3.3: Spreadsheets, dashboards and KPIs

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

50 minutes

Red, amber, green at a glance

A made-up shop owner has no time to read tables. She wants one screen that tells her in five seconds if the week is going well.

That screen is a dashboard (one screen of figures and charts). Today we see what sits behind one: a grid of cells, a few measures and a target.

Key words

WordWhat it meansExample
SQLA language for asking questions of data held in tables.select sum(sales) from weekly
SpreadsheetA grid of cells where each cell holds a value or a formula.Weekly sales in column B
FormulaA rule in a cell that works out a value from other cells.Add up cells B2 to B7
DashboardOne screen of charts and figures that shows how things are going.Sales this week against the target
KPIKey performance indicator: one number that shows if a goal is being met.Sales per week
TargetThe value the KPI should reach.100 sales a week
TrendThe general direction of the numbers over time.Sales rising each week
PatternSomething that repeats or stands out in data.Fridays are always busy
GapThe distance between the actual figure and the target.6 below target

The cells students fill in are left blank in this preview.

By the end of this lesson

Note

I can say how a spreadsheet and a dashboard help find trends and patterns, and how a KPI is monitored against a target.

Starter: what you already know

Have a go

Starter: what you already know

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

What this lesson cannot do

Important

This platform has no spreadsheet or chart program. On site you will use a real spreadsheet for this work. Here we show the cells as a table and do the same job in SQL.

Worked example: a spreadsheet as a table

CellWeekSalesFormula in the next column
Row 2182Gap is sales minus 100
Row 3291Gap is sales minus 100
Row 43104Gap is sales minus 100
Total rowAll=SUM of the sales cellsAverage uses the AVERAGE rule

The cells students fill in are left blank in this preview.

How a spreadsheet finds trends

A spreadsheet holds data in cells. A formula such as =SUM(B2:B7) adds a range of cells. When one cell changes, every formula that uses it updates.

Sort the rows, filter them, add a chart: the trend and the odd values show up. A pivot table is the spreadsheet's way to group and total, like group by in SQL.

Try it: the same job in SQL

Code: duckdb
select sum(sales) as total_sales,
       avg(sales) as average_week,
       max(sales) as best_week
from weekly;

-- This does what SUM, AVERAGE and MAX formulas do in a spreadsheet.

KPIs and dashboards

A KPI is one number that shows if a goal is met. The owner's KPI is sales per week and the target is 100.

A dashboard shows each KPI beside its target, often with a colour: green on target, red below. It lets her monitor the shop daily with no digging.

The lesson goes on

6 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.