Data and analyticsdbt

dbt

Transforms raw warehouse data into numbers the business can trust.

dbt (data build tool) lets analysts write modular, version-controlled SQL that compiles into materialised views and tables inside the warehouse. It turns raw event data into metrics the business can rely on.

What we use it for

Each warehouse project has a dbt repo. Raw tables land in a staging schema, dbt models clean, join, and aggregate them into mart tables with tests for uniqueness, freshness, and referential integrity. If a number on a dashboard is wrong, we can trace it back through the lineage.

  • Single-source-of-truth metrics definitions for revenue, churn, and retention
  • Automated testing that catches bad data before a dashboard breaks
  • Documentation that lives next to the SQL, auto-generated for stakeholders
  • Incremental models that process only new data each run
  • Three different revenue numbers in three different dashboards
  • Business logic copy-pasted across a dozen SQL queries
  • Data bugs discovered by executives in a board meeting

Official resources for dbt

The team behind dbt runs the docs, pricing, and sign-up. Start there when you are ready to try it.

Get help building with dbt

We build and maintain systems with dbt each week. Tell us the problem and we’ll suggest what to build.