Data Modelling · Lesson 1 of 6 · 12 min
Why model data? Start with the grain
Source systems store data for running the business. Analytics needs it shaped differently, and every good model starts with one question: what is one row?
The Nordic Shop's database is designed for the shop to work: take an order, look up a product, update a status. Analysts ask different questions: revenue by month, by category, by city. Data modelling is reshaping the data so those questions are easy, fast and always give the same answer.
Every table in a model has a grain: the exact meaning of one row. "One row per order line" and "one row per order" sound similar, but mixing them up is the most common cause of double-counted numbers.