Interview practice question
Average of averages problem
Data Engineering · Data Modeling · Beginner
A report shows average order value by region by averaging the stored per-store averages, and the result is wrong. How do you fix the model?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Averages are non-additive and can't be averaged again.
- Store the components: total sales and order count.
- Compute average after aggregation: sum of sales divided by sum of orders.
- Define the metric in the semantic layer.
- Same issue applies to percentages and ratios.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.