Business Intelligence Lab
KPIs, OLAP cubes and decision support.
- 3lessons
- 3experiments
- 5terms
Scientific introduction
Business intelligence turns operational data into indicators and dashboards that support decisions. It relies on dimensional modelling (facts and dimensions) and clear, agreed KPI definitions.
Learning objectives
- Define a measurable KPI
- Understand the cube, slicing and pivoting
- Design a useful KPI dashboard
- Compare decision alternatives under uncertainty
Topics
- KPIs
- OLAP
- Dashboards
- Decisions
Core concepts
- KPI
- A quantitative measure tied to a goal that tracks progress toward it.
- OLAP
- Multidimensional analysis over a cube of facts and dimensions.
- Fact table
- A table that stores the numeric measurements of events and dimension keys.
- Dimension
- A descriptive attribute by which facts are analysed, such as time or region.
- Expected value
- The average outcome weighted by its probabilities.
Theory
Designing KPIs
Traits of a good KPI
Measurable, tied to a goal, with a written definition (numerator, denominator, period, source), and influenceable. Separate lagging indicators such as revenue from leading ones such as proposals sent.
Beware of a measure becoming a target in itself and being gamed (Goodhart's law).
The cube and multidimensional analysis
Concepts
Data consists of numeric facts (revenue) and descriptive dimensions (time, region, product). Operations: slice (fix one dimension), dice (restrict several), roll-up to a coarser level and drill-down to a finer one, pivot to swap axes.
Star-schema modelling simplifies and speeds up queries.
Decisions under uncertainty
Expected value
For each alternative compute the sum of (probability × outcome). The highest expected value is not always best: when the risk is large we may prefer a less volatile option. Add sensitivity analysis: how does the decision change if a probability or cost changes?
In practice probabilities are estimates; state their source and confidence.
Worked examples
A KPI without a definition misleads
"Conversion rate" may divide by visits or unique visitors, giving different numbers. Document numerator, denominator and period.
Interactive experiments
KPI dashboard
Learning goal: Compute KPIs from a sales table and filter them by region and product.
Explanation and scientific documentation
KPIs (orders, revenue, profit, margin, units, average discount, average order value) are computed for the slice you set by region, product and month range, compared with the total.
Data: Synthetic data generated in your browser with an editable seed; the relationships are planted on purpose for learning and are not real data.
Margin = profit ÷ revenue. The definition is shown beside each KPI.
Limits: Synthetic sales data.
OLAP cube
Learning goal: Try slicing, pivoting and aggregating on a sales cube.
Explanation and scientific documentation
You pick a measure, an aggregate and two dimensions for rows and columns with an optional region or product slice.
Data: Synthetic data generated in your browser with an editable seed; the relationships are planted on purpose for learning and are not real data.
Each cell = the aggregate of the measure at the intersection of the two dimension values.
Limits: A small in-memory cube.
Pricing decision simulation
Learning goal: Compare two prices under demand uncertainty, measuring expected value and risk.
Explanation and scientific documentation
A Monte Carlo simulation of random demand and price elasticity compares the profit distributions.
Data: A computer simulation with random numbers whose seed you can change; no real data.
Profit = (price − cost) × quantity − fixed costs; quantity responds to elasticity.
Limits: An assumed demand model that does not represent a real market.
Related algorithms and methods
Star schema
A fact table surrounded by dimension tables.
Expected value
Average outcome weighted by probabilities.
Suitable datasets
- Sales (synthetic) Synthetic, generated in the browser
- Customers (synthetic) Synthetic, generated in the browser
Practical projects
- A sales KPI dashboard Beginner
Assessment questions
Sources and references
- Kimball, R., & Ross, M. (2013). The Data Warehouse Toolkit (3rd ed.). Wiley (bibliographic data entered by the editor, not machine-checked)
- Knaflic, C. N. (2015). Storytelling with Data. Wiley (bibliographic data entered by the editor, not machine-checked)
