OhMyBug

observability

Total computed over the wrong records

#29uncommon82 sightingsfirst seen August 2026

What goes wrong

A sum, average or ratio is computed over a different set of records than its label promises — only the loaded page, a missing date filter, a denominator from another selection. The number is arithmetically right for the wrong population.

Example

'Total spent this month' is summed over the first 50 orders the API returned; the customer has 320.

Not to be confused with

About which records are included; not missing values inside the right set (Partial total labelled as complete), not a different metric under the same name, and not arithmetic errors after selecting correctly.

Discovered by

Field notes · 28