Data Modeling
Data modeling is designing how data is structured: which entities exist, which attributes they carry and how they relate, expressed as conceptual, logical and physical models that become tables, keys and constraints in a database.
What is data modeling?
A data model works at three levels, from business language down to database code.
Conceptual: the business entities and how they relate, such as “a Customer places many Orders.”
Logical: attributes, primary and foreign keys and normalization rules, independent of any database product.
Physical: actual tables, data types, indexes and partitions for a specific engine such as PostgreSQL or Snowflake.
Two styles dominate. Normalized models (third normal form) suit transactional systems because each fact is stored once. Dimensional models, the star schemas popularized by Ralph Kimball, suit analytical workloads. Data Vault is a third style used for auditable enterprise warehouses.
How do you build a dimensional data model?
Kimball’s four-step process is still the standard way to design an analytics model.
Select the business process, for example subscription billing.
Declare the grain: exactly what one row in the fact table represents.
Identify the dimensions that describe each row: customer, product, date, channel.
Identify the numeric facts measured at that grain: amount, quantity, discount.
Two refinements matter in practice. Slowly changing dimensions (type 2) keep history, so a customer who changes plan is reported under the right plan for each period. Conformed dimensions, shared across fact tables, let finance and marketing slice different processes by the same customer list.
What does data modeling look like in practice?
A good model makes the hardest metric in the company boring to calculate. Picture a 50-person subscription box company with Stripe for billing, Shopify for add-on orders and Zendesk for support, where three people compute monthly recurring revenue three ways.
An analytics engineer uses dbt in BigQuery and declares the grain as one row per subscription per month. The model has a fact table of subscription months, a customer dimension tracked as type 2 so plan changes keep history, plus product and date dimensions. dbt tests check that keys are unique, not null and match their dimensions.
MRR and churn are then defined once in the model, and every Looker Studio chart reads the same table. Say a disagreement that used to take a day each month disappears.
The same model later answers questions nobody planned for, such as support tickets per subscriber by plan, because Zendesk data joins to the customer dimension instead of living in a separate spreadsheet.
What are common data modeling mistakes?
Most reporting errors trace back to an unclear grain, not a wrong formula. Watch for:
Fan-out joins, where joining orders to order lines repeats order totals and inflates revenue.
Over-normalized analytics tables that force analysts into ten-way joins.
Modeling every hypothetical future need instead of the questions asked today.
Renaming or dropping columns without warning, which silently breaks dashboards.
Nobody owning definitions, so the model drifts from how the business talks.
A very early startup with one database can often query it directly; formal modeling pays off once several sources feed the same metrics.
Which tools are used for data modeling?
Tools split into diagramming, transformation and semantic layers. For diagrams and physical design, teams use dbdiagram.io, Lucidchart, erwin Data Modeler or SqlDBM. For building models as code inside a data warehouse, dbt and SQLMesh are the common choices, with transformations written in SQL.
On top sit semantic layers that define metrics for BI tools: LookML in Looker, semantic models in Power BI and the dbt Semantic Layer. Where data lands first and how it is reshaped is covered under ETL.
A practical rule: keep diagrams for conversations with the business, and treat the dbt or SQLMesh project, with its tests and documentation, as the model that is actually true.
Normalized model vs dimensional model
Normalized (3NF) | Dimensional (star schema) | |
|---|---|---|
Built for | Transactions: inserts and updates | Analysis: reads and aggregations |
Structure | Many narrow related tables | Fact tables surrounded by dimensions |
Redundancy | Minimal, each fact stored once | Deliberate, to simplify queries |
Query style | Many joins for a report | Few joins, easy to aggregate |
History | Usually current state only | Slowly changing dimensions keep history |
Typical home | PostgreSQL, MySQL app databases | Snowflake, BigQuery, Redshift |
How does VIZIO AI approach data modeling?
VIZIO AI models data around the KPIs leadership actually argues about, then automates everything that feeds them. For a US-based women’s fashion e-commerce brand, DX Studio built a consistent data model that reconciled marketing, sales and pricing data from different systems into a shared KPI model. Data accuracy improved by 28% and operational decisions came 32% faster.
For a Spain-based international legal boutique, the team built a SQL data warehouse connecting HubSpot and financial systems, with validation layers keeping metrics consistent across Spain, Portugal and Greece; reporting time fell by 70%. Where to start: write a one-sentence grain statement for your most disputed metric.