Composability
Composability is a design principle for building complex systems from small, self-contained parts with clear interfaces. Like Lego bricks, standard pieces snap together to create new capabilities without starting from scratch.
In Depth
In a metric-centric architecture, you treat foundational measures like “Total Revenue” or “Orders” as atomic definitions. Each lives in one governed place with a clear formula, data source, and time behaviour. You then compose new metrics by referencing those same building blocks rather than rewriting logic.
This layered approach reduces duplicate formulas, shrinks technical debt, and keeps business math transparent. When a base measure changes, every composed metric that depends on it updates automatically. The result is a consistent, auditable, and scalable metric layer that teams can reuse across dashboards, reports, and analyses.
Composability also improves collaboration. Analysts define the building blocks. Business users combine them safely to answer questions fast, without needing to touch SQL or remember where a number came from.
Pro Tip
Name base measures precisely and document their logic before creating calculated metrics. Clear names and descriptions are the fastest way to prevent formula drift.
Why Composability Matters
- Consistency: Update a base measure once and every dependent KPI reflects the change. No more rival versions of “the truth.”
- Auditability: You can trace a KPI to its ingredients and formula steps, for example “Profit Margin = (Revenue − Cost) ÷ Revenue.”
- Efficiency: Reuse shared definitions to cut SQL sprawl and reduce maintenance across teams and tools.
Composability In Practice
Start with atomic, governed measures:
- Base measures: “Revenue,” “Cost,” “Orders,” “Active Customers.”
- Composed metrics: Reference base measures to calculate “Average Order Value,” “Return Rate,” or “Profit Margin.”
Example:
- Define “Revenue” and “Cost” as base measures.
- Define “Profit” as “Revenue − Cost.”
- Define “Profit Margin” as “Profit ÷ Revenue.”
If “Revenue” changes to exclude refunds, all dependent metrics align instantly.
Composability and PowerMetrics
PowerMetrics takes a metrics-first approach that operationalizes composability.
- Instant and Custom Metrics (Base): Create governed base measures directly from sources like spreadsheets, databases, or APIs. Each metric is a first-class object with history and consistent formatting.
- Calculated Metrics (Composed): Build new metrics by combining existing ones with formulas. Example: “Return Rate” = “Returns” ÷ “Total Sales.”
- Metric Knowledge Graph: See how metrics relate to each other. Trace dependencies from a KPI back to its base measures for clarity and trust.
- Reusability Across Dashboards: Once defined, a base metric can be reused anywhere. Teams assemble dashboards quickly without recreating logic.
This structure forms a metric-centric semantic layer that standardizes definitions, keeps lineage visible, and enables confident self-serve analysis.
Related terms
Metric
A metric, in the context of analytics, is a calculated value that tracks performance for a business activity. Think of it as a consistent math formula applied to your data over time, like revenue, conversion rate, or churn rate. A metric includes a clear formula, time frame, and rules for how to slice the data. It turns raw numbers into a repeatable signal you can compare across periods, products, regions, or segments.
Read moreSemantic Layer
A semantic layer is the shared business vocabulary and rules that translate raw tables into consistent, human‑readable metrics and dimensions. It turns questions like “What do we mean by revenue?” into reusable definitions every chart and query uses.
Read moreMetrics Layer
A metrics layer is a centralized abstraction layer that sits between your data warehouse and your downstream analytics tools. It allows data teams to define business logic and KPI calculations—such as "Gross Margin" or "Monthly Active Users"—in a single, governed location.
Read moreMetric Catalog
A metric catalog is a centralized, governed repository of standardized business metrics and KPIs. It serves as an authoritative reference guide, documenting the precise name, calculation formula, and business context for every metric. By housing these definitions in a single location, a metric catalog eliminates "metric drift," ensuring that all departments—from Finance to Sales—calculate and interpret organizational progress using the exact same logic.
Read moreKnowledge Graph
A knowledge graph is a structured network that represents real-world entities (people, places, products, metrics) and the relationships between them. It adds context to data, so systems and people can make smarter decisions.
Read moreData Lineage
Data lineage maps the journey of your data from origin to destination. It visually shows where data comes from, how it’s transformed, and where it’s used.
Read moreMetric Tree
A metric tree is a visual or conceptual model that maps how key business metrics relate to each other. It links a top‑level outcome, like revenue or retention, to the contributing drivers that explain changes underneath. You get a clear, shared view of cause and effect across teams.
Read more