An independent study reference written by Dr Phuc V. Nguyen. It is not official subject material — for assessment requirements always follow your subject outline and vUWS.
Measures and dimensions
A measure is a number you aggregate. A dimension is an attribute you slice by. The working test is whether adding the values produces something meaningful: sales amount passes, postcode does not. Measures then divide by how they add up. Additive measures sum across every dimension. Semi-additive measures, such as an account balance or stock on hand, sum across products and stores and not across time, where a closing or average value is used instead. Non-additive measures, above all ratios and percentages, cannot be summed, and averaging them across groups is only correct when each rate is weighted by its own denominator, so the dependable design recomputes them from their components at whatever level is being reported.
Why it matters
Measures are the things on the scoreboard. Dimensions are the ways of cutting the scoreboard up: by team, by month, by venue. The trap is ratios. If one store converts ten visitors out of a hundred and another converts one out of nine hundred, averaging ten per cent and about a tenth of a per cent gives roughly five per cent, which is nowhere near the truth. The real combined rate is eleven conversions out of a thousand visitors.
A team wants conversion rate to be correct at store, region and national level with no special handling. What should the fact table store?
Formulas
Worked examples
A dashboard shows average conversion rate by region, computed by averaging the store-level rates inside each region. A regional manager finds it does not match the rate she calculates from the raw totals.
The dashboard is averaging ratios. A region with one enormous store and nine small ones gives the small stores nine tenths of the weight, which is not how customers actually arrive. The fix is to hold conversions and visits as two additive measures in the fact table and compute the ratio at query time from the sums. The same measure is then correct at store, region and national level with no special handling, which is the general rule for any rate, share or percentage.
A finance report sums daily closing cash balances to produce a monthly cash figure, and the number looks implausibly large.
Cash on hand is a stock measured at a point in time, so thirty daily balances of about two hundred thousand dollars sum to roughly six million dollars of cash the business never held. The monthly figure should be the closing balance on the last day, or an average daily balance if the question is how much cash was typically held. The measure sums perfectly well across branches, which is what makes semi-additive measures easy to get wrong. They behave normally in every direction except time.
Common mistakes
- ✗A percentage stored in the fact table is just another measure. Percentages cannot be added, and averaging them across rows is correct only when each one is weighted by its own denominator, so storing the numerator and denominator separately and dividing at query time is the design that stays correct at every level without special handling.
- ✗Anything numeric is a measure. Postcodes, product codes and years are numbers you group by rather than add, so they are dimension attributes despite their type.
- ✗Averaging group rates without weights is a reasonable approximation of the overall rate. An unweighted average equals the pooled rate only when every group has the same denominator, and the gap widens as the group sizes diverge; weighting each rate by its own denominator recovers the pooled rate exactly.
- ✗Semi-additive measures are a rare edge case. Balances, headcount, inventory and subscriber counts are all stocks, and they turn up in almost every business area.
Revision bullets
- •Measure: a number you aggregate. Dimension: an attribute you slice by
- •Additive measures sum across every dimension
- •Semi-additive measures (balances, inventory, headcount) do not sum across time
- •Ratios are non-additive: store numerator and denominator, divide at query time
- •An unweighted average of group rates equals the pooled rate only when denominators are equal
Quick check
A team wants conversion rate to be correct at store, region and national level with no special handling. What should the fact table store?
Which of these can be summed across the days of a month to give a figure in the same unit, meaning the same thing it means on a single day?
Connected topics
More in Data Foundations
Sources
- Kimball & Ross (2013)Kimball, R., & Ross, M. The Data Warehouse Toolkit: The Definitive Guide to Dimensional Modeling, 3rd ed. Wiley, 2013.Sets out additive, semi-additive and non-additive facts and the rule that ratios are computed from stored components.
- Simpson (1951)Simpson, E. H. "The Interpretation of Interaction in Contingency Tables." Journal of the Royal Statistical Society, Series B, 13(2), 238-241, 1951.Shows that a comparison made within groups can reverse when the groups are pooled, which is why a rate must be recomputed from its components rather than averaged.