Data Analysis / Editorial solution guide

Diagnose Retention Window Disagreement

Trace cohort membership, activity windows, and extraction cutoffs when two retention reports disagree.

About 3 min readContent reviewed

Read-only knowledge base ยท No public comments

Recognize the symptoms

Two reports claim to measure the same cohort retention but show different numerators or rates.

A recent cohort appears unusually weak even though its activity records are still arriving.

Understand the likely causes

  • Reports may use different cohort identifiers, distinct-count rules, or activity definitions.
  • Timezone boundaries, incomplete follow-up, or late-arrival policies can change which events are counted.

Preserve the reports and agree on the contract

Capture both report versions, source snapshots, extraction cutoffs, filters, and displayed numerators and denominators in an authorized test environment. Avoid changing the production calculation while evidence is incomplete. Write down the intended entity, cohort event, qualifying activity, timezone, and exact start and end boundaries for one disputed period.

Confirm whether the follow-up window is complete for every included account. An unfinished window is not evidence of inactivity. Decide how late events and account merges are handled, and record the decision so the two implementations can be evaluated against the same definition.

Trace membership and boundary events

Compare distinct cohort identifiers first, then compare retained identifiers within their agreed windows. Inspect a small set present on only one side and trace each source event through timestamp conversion and filters. A repeated event should not count an account twice, while an active account outside the cohort should not enter the numerator.

For each mismatch, record the original timestamp and its interpreted local time, along with the window boundary and inclusion decision. Also check whether one report uses a calendar period while the other uses elapsed days. These are different definitions even when the labels look similar.

Correct one confirmed mismatch

Change the documented rule in a bounded test copy, then recalculate the disputed cohort and a previously agreeing cohort. Compare distinct numerator and denominator counts before comparing rounded percentages. Review records at both window edges and include an incomplete recent cohort in the test so it is marked separately.

Once the correction is accepted, publish the definition and explain any historical restatement to report owners. Preserve the earlier evidence and make production changes through the normal review process. If source snapshots differ, reconcile their contents before attributing the discrepancy to code.

Verify the fix

The two test calculations now agree on cohort membership, retained identifiers, numerator and denominator under the same input snapshot and definitions.

Boundary, duplicate-event, outside-cohort, and incomplete-window cases produce the documented treatment; the displayed rate matches the reconciled counts.

Keep it from recurring

  • Maintain a shared metric contract with timezone, window boundaries, distinct-count grain, extraction cutoff, and late-arrival policy.
  • Keep small synthetic fixtures for boundaries and duplicates and rerun them whenever ingestion, identity mapping, or reporting logic changes.

Official references