Skip to main content
SourceMedium defines each metric once. Dashboards, the metric catalog in your warehouse, and the SQL Query Library all use the same definition, so order_net_revenue means the same thing everywhere.

Where the definitions live

Which level to query

  • Report tables (rpt_*): fastest for common dashboard-style questions. Start with rpt_executive_summary_daily.
  • One Big Tables (obt_*): flexible analysis with joins and business logic already applied. Start with obt_orders.
  • Metric catalog: when you need the exact formula behind a dashboard number.

Standard metric groups

SourceMedium’s dashboards are built from these metric groups. The SQL Query Library recipes cover the same ground.
Not every brand has every integration, so coverage varies by source system.

How this relates to the SQL Query Library

The Query Library recipes are built on the same rules as the metrics:
  • Valid order filtering (is_order_sm_valid = TRUE)
  • Stable analysis tables (obt_* and rpt_*)
  • Lowercased categorical groupings for safe aggregation