Interview practice question
Shipping cost double counted
Data Engineering · Data Modeling · Beginner
In an order line fact table, shipping cost (which is per order) is repeated on every line. Totals are too high. How do you fix the model?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Shipping is at order grain, the fact is at line grain.
- Mixing grains causes double counting.
- Option: allocate shipping across lines by amount or weight.
- Option: separate order-level fact for order-level measures.
- Document the rule.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.