Articles
    Back to Product Metrics and Formulas

    Referential Integrity Violation Rate

    Share of fact rows with a non-null foreign key for which no valid parent record exists; it measures broken links between facts and dimensions.

    Category
    Analytics
    Role
    Guardrail
    Timing
    Leading
    Direction
    Lower is better
    Unit
    Percent
    Window
    Daily UTC snapshot per table or contract version, with a fixed cutoff and backfill allowance
    Basis
    Fact rows of one fact-to-dimension relationship
    Data source
    Data warehouse tables and data quality checks
    Decision it informs
    Hold back breakdowns with lost links when the contract is broken; restore the dimension or key.
    Parent metric
    Formula
    Fact rows with a non-null key and no valid parent / Fact rows with a non-null key × 100
    Numerator
    Fact rows with a non-null foreign key and no matching valid parent (for slowly changing dimensions, valid at event time)
    Denominator
    Fact rows with a non-null foreign key

    Calculator, worked example, common mistakes and formula variants are available after free sign-up

    • Calculator
    • Worked example
    • Common mistakes

    Description

    Share of fact rows whose foreign key points to no valid parent record. Orphaned rows fall out of every join to dimensions and make segment totals disagree with the overall total.

    Often confused with

    Metric tree

    Open tree

    Related metrics

    These metrics are covered in detail in the LinkedIn Friends All Courses PassTG, YouTube, bots, channels and resources here