DatasetsExcel Guides

How to Compare Monthly Rates When a Month Is Missing in Excel

The percentage changed. The comparison month changed with it.

A previous-row calculation can return a perfectly valid difference while answering the wrong calendar question. This synthetic workbook checks March against February for the same group, then keeps missing records, valid zero rates and unusable inputs separate.

The reported problem

In a Metabase support discussion, a practitioner wanted a trend indicator to show percentage-point differences rather than relative percentage change. Replies offered a separate Number card using Offset. That is a useful starting point, with another condition to check: which period does the previous row actually represent?

Metabase documents that Offset reads available rows. It does not supply missing dates. Its documentation suggests a calendar table when every period is needed. A calendar row establishes the period; it does not by itself prove a missing numerator or denominator is zero.

Five similar-looking March rates

All records below are synthetic. Each group uses the same definition of successes and eligible records over time. A monthly summary is expected to have one row per group and month. Successes must be a nonnegative integer subset of eligible records. Every March row contains 5 successes among 40 eligible records, a 12.5% rate.

Group February evidence March versus February
Gap No February row Unavailable
Zero 0 successes / 20 eligible +12.5 percentage points
Empty 0 successes / 0 eligible Unavailable: no defined prior rate
Duplicate Two monthly summaries: 1/20 and 2/20 Unavailable: resolve the duplicate key
Blank Missing success count / 20 eligible Unavailable: missing numerator

Only Zero supports this calendar-month difference. Its February rate is a genuine 0%, so March rises by 12.5 percentage points. Relative percentage change is undefined because the prior rate is zero. Reporting an infinite increase would not supply a usable comparison.

Why the previous available row is different

Gap has January at 20 successes out of 100, or 20%, followed by March at 12.5%. Subtracting those rates gives -7.5 percentage points. Dividing the difference by the January rate gives -37.5% relative change. Both describe January to March. Neither is a March-versus-February result.

The two original records are Monthly!A9:D10. Their actual month cells are Monthly!B9 and Monthly!B10. Check the entire group/month input range before declaring a month missing. An earlier row is not a substitute for the requested month.

Check the key, counts and dates together

The original inputs are Monthly!A9:D23: group, typed month-start date, successes and eligible records. Zero uses February Monthly!A12:D12 and March Monthly!A13:D13. Empty uses rows 15 and 16. Duplicate has two February records in rows 18 and 19, followed by March in row 20. Blank has an empty Monthly!C22, not a numeric zero, and its March record is row 23.

The Comparison sheet first derives the previous calendar month, counts matching records for that group and month, then calculates rates only from a unique usable summary. Percentage points are the difference between decimal rates multiplied by 100. Relative change divides the rate difference by a defined, nonzero prior rate. Duplicate summaries stay unresolved because this export does not establish that their populations are disjoint.

Validation and product test

The workbook passed 1,040 independent comparisons across 26 test states, including changed counts, missing values, invalid counts, repaired keys, reordered source rows and a changed reporting month. Both worksheets were rendered and reviewed. Saved key results and the original blank were checked. Native desktop Excel recalculation was not tested.

On November 24, 2026, Jolene read the public XLSX, returned the matching file size and SHA-256, and reproduced all five outcomes and the January-to-March control with the correct original source-cell references. Those citations were checked against the workbook. This verifies the public-file analysis. A separate native-upload test could not open the source database, so native upload analysis remains unverified.

Download the synthetic workbook

Download the calendar-month rate comparison workbook.

The formulas cover 15 source rows and five groups. Extend the bounded source ranges and comparison rows together when adding data. Establish the metric definition and source coverage separately for a real export. This example checks an exported comparison; it does not change a live Metabase question.

Leave a comment