Case study
Notification data quality
The problem. A billable account does not necessarily imply an expected notification.
My role. I used SQL to compare account populations across billing cycles and investigate differences in notification eligibility.
Approach. Compare account populations across billing cycles.
Context
Accounts and customers are different units of analysis: a customer can have multiple accounts. Comparing notifications requires an explicit eligible population for each cycle.
Approach
- Compare account populations across billing cycles.
- Investigate differences and notification gaps.
- Use the example below to distinguish expected from observed events before interpreting coverage.
What this work produced
My contribution was the comparison and identification of gaps for review. The example explains the reconciliation approach; it does not reproduce production results.
Technical detail
In the example, one row represents an account and cycle. Only rows with an expected notification belong to the denominator. Account identifiers do not provide a customer count.
Engineering considerations
Before applying this pattern, agree eligibility and cycle cutoffs with the process owner. Check duplicate keys, unmatched records and empty eligible populations. Coverage is undefined when no notification is expected.
Illustrative example using synthetic data
Illustrative example using synthetic data. Account labels, cycles and eligibility rules are invented; these are not production figures.
| Account | Cycle | Expected | Observed |
|---|---|---|---|
| F-01 | A | Yes | Yes |
| F-02 | A | Yes | Yes |
| F-03 | A | Yes | No |
| F-01 | B | Yes | Yes |
| F-02 | B | Yes | No |
| F-03 | B | No | No |
Cycle A: 2 of 3 eligible accounts have an observed notification. Cycle B: 1 of 2. F-03 is a gap in A and excluded from B; F-02 is a gap in B.