IDEN
Analytics Engineering / RAPIAPP READING

Conversion at 50% or 82.7%? Both are showing up in the meeting.

Metric definitions and aggregation need to stay consistent before an organization ends up with five versions of the truth.

The denominator can change the whole story.

A has 1 conversion from 10 visits, or 10%. B has 90 from 100, or 90%. The average of the two rates is 50%. But combined conversion is 91 divided by 110, or about 82.7%. Both calculations are valid answers to different questions. The first gives equal weight to each group. The second weights by visit count.

State the population, unit, and weighting. If the question is combined conversion per visit, an average of group rates is not a substitute. If you really want the average across branches with equal branch weight, explain why each branch counts equally. No formula can choose the business question for you.

Keep the components of a ratio.

Kimball distinguishes additive, semi-additive, and non-additive facts. For a ratio, a useful approach is to add the numerator and denominator first, then divide at the level of the question. Percentages alone make the weights hard to reconstruct. Balances also have different time-aggregation limits from transaction flows.

For the store example, store converted_sessions and eligible_sessions. Do not mix conversion measured per person with traffic measured per session. One person can have several sessions. The same unit definition needs to hold from source to chart label, not change halfway through the query.

Short formula, long definition.

Revenue needs to say whether it is gross or net, how it treats discounts, refunds, tax, currency, recognition time, and included statuses. An active customer needs an activity event and time horizon. SUM(amount) in one file does not unify meaning if the source amount fields differ. Use transaction examples business owners can audit with you.

Write down the owner, effective period, and change rule. If refund treatment changes, historical reports may need revision or a new definition version. Users need to know whether periods are compared under the same definition. A silent semantic change can be more dangerous than a chart color change everyone notices.

A semantic layer does not replace modeling.

The dbt documentation distinguishes metric types, including ratio and derived metrics. A semantic layer can centralize definitions, entities, dimensions, and aggregations for consumers. But it cannot heal a bad join or missing source just because a query was generated automatically. Test calculations against agreed examples.

For a small team, documented SQL models can be a useful first step. For many BI tools and applications, shared definitions may reduce duplication. Choose based on needs and operational capacity. Calling something a semantic layer will not make every department agree spontaneously.

Review with example cards.

Prepare cases for partial payment, a refund after month-end close, a canceled order, and a customer changing segments. Calculate results manually on a small dataset, then compare the model for daily, monthly, and segment-level answers. A small case can expose a fuzzy definition faster than millions of chart points.

Monitor reconciliation and metric version usage. Two different numbers can come from legitimate needs or accidental duplication. The goal is not to force every question to use one number. It is to make the difference between questions visible before a meeting turns into a contest over whose dashboard is most senior.

An example to inspect.

SELECT SUM(converted_sessions)::numeric
 / NULLIF(SUM(eligible_sessions), 0) AS conversion_rate
FROM daily_conversion;
-- Do not use AVG(rate) without a weighting reason.

Branch A has 2 visitors. Branch B has 2,000. When does an equally weighted average rate make sense?

When the question is the average branch rate with every branch treated equally, not combined conversion per visitor. State the estimand and its weights.

Keep these three things.

Sources, not slogans.

Primary references reviewed on 7 November 2026. The explanation, examples, and visual were prepared by RapiApp. The diagram simplifies the topic for learning. The article explains its assumptions and limits.

Continue the foundations.

Sources

Open the Indonesian version and its original visuals ↗