How do I keep BI metrics consistent across tools?
Metrics are defined in code and exposed through a query interface that different BI tools call. Each tool reads the same definition, so a metric returns the same value in every report and notebook.
Command
bruin runDefined in
YAML + SQL
Works with
Bruin + your warehouse
What you get
shared metric definitionsquery interfacecross-tool parity
How it works in code
metrics:
- name: gross_margin
label: Gross Margin
source: analytics.finance_daily
expression: (revenue - cost) / NULLIF(revenue, 0)
time_dimension: report_dateRun bruin run and every connected tool reads the same metric value.
Related use cases
Dashboards as code
Define a dashboard as code
How do I define a dashboard as code?
Dashboards as codeBuild a metrics layer so metrics stay consistent
How do I build a metrics layer so metrics stay consistent?
Dashboards as codeBuild dashboards directly from dbt models
How do I build dashboards directly from dbt models?
Dashboards that live in git
Open source. Write YAML, run one command, query your warehouse directly.