Engineering labs
When averages hide the denominator.
An interactive demonstration of two valid calculations answering fundamentally different business questions.
Try two different group sizes
Synthetic counts only. Calculations run in your browser; this experiment does not upload your inputs.
| Group | Completed | Total | Group rate |
|---|---|---|---|
| Team A | 90.00% | ||
| Team B | 10.00% |
— 19 of 110 eligible records.
Equal-weight mean of group rates: 50.00%.
The overall rate weights every eligible record equally. The mean weights each team equally. Choose the metric that matches your question.
Expected behavior & validation
With the initial synthetic inputs, Group A (9/10 = 90%) and Group B (10/100 = 10%) combine to an overall weighted completion rate of 19 / 110 = 17.27%. By contrast, taking the equal-weight arithmetic mean of 90% and 10% yields 50.00%—a 32.73 percentage-point divergence caused solely by the 10× difference in group denominators.
Empty, fractional, negative, zero-denominator, or impossible counts (where completed records exceed eligible records) trigger deterministic validation feedback rather than silently coercing invalid numbers.
Why this matters in real BI & MIS systems
This discrepancy appears constantly in executive scorecards: averaging branch conversion rates without weighting by branch traffic, averaging SLA compliance across small and high-volume queues, or summarizing monthly percentages in a spreadsheet pivot table instead of recomputing the base ratio.
- Use the weighted ratio when you want the true portfolio-wide rate across every record, customer, or transaction in the organization.
- Use the unweighted group mean only when each group (for example, equal-priority regions or autonomous operating units) intentionally carries identical weight regardless of volume.
Three practical BI & MIS scenarios to test above
Try typing the following synthetic datasets into the interactive calculator at the top of this page to observe how denominator imbalance behaves across common business domains.
| Channel | Completed orders | Checkout sessions | Channel conversion |
|---|---|---|---|
| Desktop Web | 180 | 3,000 | 6.00% |
| Mobile App | 210 | 14,000 | 1.50% |
Here, the unweighted channel average is 3.75%, while the true site-wide conversion rate is 390 / 17,000 = 2.29%. If a marketing team budgets acquisition spend assuming a 3.75% blended conversion rate when 82% of sessions arrive on Mobile App at 1.50%, revenue projections will be overstated by more than 60%.
| Queue | Resolved within SLA | Total assigned accounts | Queue SLA % |
|---|---|---|---|
| Digital Self-Serve Pilot | 46 | 50 | 92.00% |
| Field Recovery Tier | 520 | 1,200 | 43.33% |
Averaging the two queue percentages reports 67.67% SLA compliance. Yet across all 1,250 accounts, only 566 were resolved on time—a true portfolio SLA of 45.28%. Until the pilot queue scales in volume, unweighted averaging creates false confidence in aggregate operational readiness.
| Period & Cohort | Completed | Eligible | Cohort rate |
|---|---|---|---|
| Month 1 — Small Team / Large Team | 9 / 10 and 10 / 100 | 110 total | Mean: 50.00% · Weighted: 17.27% |
| Month 2 — Small Team / Large Team | 8 / 10 and 30 / 100 | 110 total | Mean: 55.00% · Weighted: 34.55% |
Notice how the large team tripled its completion rate from 10% to 30%, doubling the organization's true weighted completion rate from 17.27% to 34.55%. Meanwhile, the unweighted mean barely moved from 50.00% to 55.00% because a 1-record dip in the tiny 10-person team cancelled out most of the 20-record gain in the 100-person team.
Edge-case walkthroughs: what happens when inputs break?
- Zero-denominator group (
Eligible = 0): A new branch with zero eligible transactions has an undefined rate (0 / 0). In a weighted sum,0contributes cleanly to both numerator and denominator totals without breaking the portfolio ratio. In an unweighted mean, coercing0 / 0to0%artificially drags down the average, whereas excluding the group changes the group count dynamically. - Numerator exceeds denominator (
Completed > Eligible): In real MIS tables, this usually signals a grain mismatch—for instance, counting multiple partial payments or re-opened tickets in the numerator against unique accounts in the denominator. Always verify that both counts share the exact same entity grain before computing a percentage. - Pre-aggregated percentages in CSV exports: If an upstream vendor only sends a
CompletionRatecolumn without the underlyingEligibleCountdenominator, you cannot recover the true weighted portfolio KPI downstream. Require raw numerator and denominator columns in every data contract.
Correct SQL, DAX & Python implementation patterns
Never pre-aggregate percentages in an upstream ETL table and average them later in a BI layer. Store raw numerator and denominator counts at the grain and compute the ratio dynamically at query time:
-- SQL: Weighted aggregate ratio (safe against divide-by-zero)
SELECT
SUM(completed_count) * 1.0 / NULLIF(SUM(eligible_count), 0) AS weighted_completion_rate,
AVG(completed_count * 1.0 / NULLIF(eligible_count, 0)) AS unweighted_group_mean
FROM reporting_groups;
-- Power BI DAX: Dynamic ratio measure (respects all slicers and matrix subtotals)
Weighted Completion % :=
DIVIDE( SUM(FactGroups[CompletedCount]), SUM(FactGroups[EligibleCount]) )
-- Power BI DAX: Explicit equal-weight group mean (when unit-level parity is intended)
Unweighted Group Mean % :=
AVERAGEX(
VALUES(DimGroup[GroupName]),
DIVIDE( CALCULATE(SUM(FactGroups[CompletedCount])), CALCULATE(SUM(FactGroups[EligibleCount])) )
)In Python data pipelines, avoid calling df["rate"].mean() on pre-grouped summary tables:
# Python: Always sum raw components before dividing
weighted_rate = df["completed"].sum() / df["eligible"].sum()
unweighted_mean = (df["completed"] / df["eligible"]).mean()Executive scorecard audit checklist
Before signing off on any Power BI report, Excel MIS workbook, or SQL mart that surfaces completion rates, conversion percentages, SLA compliance, or recovery ratios, run through these four verification checks:
- Inspect the subtotal row in matrix visuals: Check whether the Grand Total row equals
SUM(Numerator) / SUM(Denominator)or the simple average of the visible rows above it. In Excel PivotTables, calculated fields often sum correctly while calculated items or externalAVERAGE()formulas silently produce unweighted means. - Verify that numerator and denominator share one grain: A common cause of
Completed > Eligibleanomalies is counting child events (such as partial deliveries or multiple payment attempts) in the numerator while counting distinct parent orders or accounts in the denominator. - Check slicer behavior on small pilot cohorts: Filter the dashboard to exclude low-volume pilot branches or newly launched regions. If the overall headline percentage barely changes—or swings dramatically when a 10-record cohort is toggled—your visual may be computing an unweighted group mean.
- Document the intended question in the KPI glossary: If leadership genuinely wants an equal-weight average across autonomous operating units (treating each branch manager as one equal vote), name the measure explicitly as “Average Branch Rate (Equal-Unit Mean)” and display it alongside the volume-weighted portfolio rate so both perspectives remain transparent.
In automated MIS pipelines, pairing this semantic-layer discipline with upstream completeness checks and grain-safe SQL transformations ensures that neither join fan-out nor unweighted averaging distorts executive decisions. When both the raw numerator and denominator are preserved from Bronze ingestion through Gold reporting tables, any stakeholder can audit a headline percentage back to its exact underlying records.
Model scope & limitations
This is a deterministic count-based model with positive denominators. It does not model overlapping populations, hierarchical multi-level weighting, confidence intervals, or missing observations.
Read the full methodology, findings, and reproduction notes, inspect the SQL join grain inflation study, review DAX evaluation context patterns and Power BI semantic modeling, check our trust & verification standards, or return to all engineering labs. Need help auditing an executive scorecard? Explore BI & MIS advisory services or get in touch.