Skip to main content
← Back to Patterns

Change a metric definition without silently changing its meaning

By Ivan Richter LinkedIn

Last updated:

6 min read

In brief

Give a shared metric a new definition version when its business meaning changes.

  • Run both definitions on the same inputs to explain the difference.
  • Label historical comparisons and migrate the reports and automated actions that depend on the old meaning.
On this page

When a shared metric starts answering a different question, give the new definition an identity and migrate its consumers to it. Calculate old and new definitions on the same input long enough to explain their differences.

A familiar column name shouldn’t make a change in meaning look like a change in business performance.

We’d keep this proportionate. A definition record and two temporary outputs can be enough for one warehouse and a handful of reports. Even with a metric platform, someone still has to decide which customers, events, dates, and exclusions belong in the number.

Separate a correction from a new definition

Start with the accepted meaning, not the current SQL. If the definition says distinct active workspaces and the query accidentally counts one twice, fixing the duplicate restores the contract. Record the defect, identify affected results, and correct them under the reporting revision policy.

Now suppose active workspace originally meant any workspace with an event during the period. The business decides it should mean a non-test workspace with activity performed by a person, excluding background synchronization. That changes eligibility. The original calculation may have implemented its definition perfectly, but the new result answers a narrower question.

Could a competent user apply yesterday’s interpretation to the new value and reach the wrong conclusion?

A changed denominator, attribution window, cancellation treatment, time zone, or eligibility rule can do that even when the column keeps the same name and type. A schema contract can’t catch that kind of change in calculated meaning, a gap dbt’s model-versioning guidance also recognizes.

Borderline cases need an owner to decide and record the classification. Calling every controversial change a bug fix avoids a discussion without resolving compatibility. Calling every refactor a new business definition creates work without changing the answer.

Identify the meaning separately from its implementation

Keep a compact definition record: metric ID, definition version, unit, grain, eligibility, numerator and denominator where they apply, time basis, exclusions, accepted historical policy, and owner. Reference the code or model version that implements it. A commit identifies one implementation change, while the business contract lives in the record.

For the workspace example, active_workspaces_v1 and active_workspaces_v2 can be separate governed outputs during migration. Another implementation might add a definition-version column with a uniqueness contract that stops consumers from adding versions together.

Choose the representation your existing stack can review and query clearly.

Name the default alias, because a consumer pinned to v1 and a consumer following “current” have different change contracts. Before moving the default, list which reports, scheduled extracts, spreadsheets, and rules use each behavior. A chart may consume the metric through an intermediate source, so warehouse SQL dependencies won’t show every consumer.

In Data Studio, a calculated field in a data source is available across reports using that source. A chart-specific field belongs to that chart. That calculated-field scope decides how far an edit can travel. Identify those consumers before choosing a release plan.

Build a bridge with common inputs

Evaluate both definitions against the same source cut, calendar, and included organizations. Otherwise a difference between versions might come from late data or a changed population. Keep enough detail to explain membership changes.

Say v1 counts 100 active workspaces in a period. Eighteen have only background events. Seven are test workspaces, and three of those are already in the background-only group. The new definition produces 78 workspaces. Subtracting 18 and then all seven would give 75 by removing the overlap twice.

A usable bridge starts at 100, removes the 18 background-only workspaces, and then removes the four remaining test workspaces. It ends at 78 with no unexplained residual.

The ordering is part of the explanation. Another valid category order could allocate the overlap differently and reach the same result. State the order you used if readers compare category contributions.

Investigate the difference sets themselves. Every workspace removed from v2 should have a supported exclusion reason, and unexpected additions or unmatched identifiers need examination. Repeat the comparison for representative periods and scopes, including sparse periods and an edge case that motivated the change. Don’t select only the week that makes the migration look tidy.

The overlap run shows what the definitions do on those inputs. If the change is meant to predict retention, revenue, or workload better, that claim needs its own evaluation.

Choose what happens to historical comparisons

If the new definition can be computed reliably over the needed history, rebuilding a comparable v2 series is often the clearest operational default. Label the series with its definition and keep issued historical reports available where earlier decisions need explanation.

If historical data lacks the new eligibility evidence, show a break at the transition. Don’t backfill a made-up classification to draw a continuous line. A bounded overlap can show the scale of the difference for periods where both definitions are computable. It doesn’t justify applying one conversion percentage to every older month.

Targets and automated thresholds also need review. A target calibrated against 100 workspaces under v1 can’t simply inherit v2’s narrower population and keep the same interpretation. Record which definition each target or rule assumes. Keep existing actions pinned until the owner has checked their eligibility and consequences under the new measure.

Move consumers through the change

For a small collection, we’d track a short migration list with consumer, owner, current definition, new definition, verification result, and switch date. Test at least one filtered view and the total for each important consumer. Verify labels, calculated fields, exports, and alerts rather than checking only that the page renders.

A renamed warehouse field can break a BI calculation even when the replacement contains valid data. Data Studio treats a refreshed field rename as removal plus addition, with consequences for charts and dependent calculations.

Introduce the new field alongside the old one when consumers need a migration window.

Don’t assume a draft report isolates shared dependencies. In Data Studio, changes to reusable data sources can affect published reports immediately. Test a separate candidate source or use a versioned upstream field when the existing source must keep its meaning.

Set the switch criterion before changing the default. We’d require an explained bridge, a decided historical treatment, verification by important consumers, and a named owner who accepts the release.

Close the migration

Keep the old live output only for the agreed compatibility window. Identify remaining pinned consumers, give each a concrete transition or retirement decision, and remove obsolete calculations after that obligation ends.

Archive the definition and bridge evidence. You don’t have to keep recalculating both versions.

Switching a report back to v1 may restore its previous interpretation, but it doesn’t undo decisions or actions triggered while v2 was active. Store the definition version with the evidence for each triggered action so those cases can be found and reviewed.

More in this domain: Reporting

Browse all

Related patterns