Skip to content

Knowledge / Topic guide

Data quality: a practical learning path.

Foundations, architectural concepts, production failure modes, and verifiable exercises for Data quality.

Overview & engineering perspective

Dashboards rarely fail because a chart library had a rendering bug—they fail because nobody verified the underlying rows before publishing. Data quality engineering is the practice of making bad inputs loud, visible, and quarantined before they corrupt executive metrics.

Checking only the first 50 or 100 rows in a preview pane creates false confidence: a clean prefix can easily hide malformed records at row 901 or silent duplicates introduced by an upstream retry. Reliable pipelines run full-population assertions for null keys, referential integrity, range bounds, and financial control totals.

In regulated or high-stakes MIS environments, pairing automated validation gates with a human-in-the-loop exception queue ensures edge cases are reviewed rather than silently dropped.

Before you start

Primary keys, record counts, null semantics, and explicit business metric definitions.

Learning objectives

  • State a quality rule as a testable predicate.
  • Explain what a sample does and does not establish.

Foundational concepts

  • Completeness
  • Uniqueness and valid ranges
  • Exact versus sampled checks

A pathway with checkable outputs

These are practice assignments, not claims that every external tool has been tested here. Use synthetic data and verify each result before progressing.

Beginner

Run the 1,000-record nonempty-email fixture.

Completion evidence: One defect found by the full scan.

Intermediate

Compare the exact check with the deliberately nonrandom prefix sample.

Completion evidence: Zero defects in the first 100 rows, with record 901 explicitly outside that sample.

Advanced

Design a randomized sampling study with recorded seed, sampling frame and uncertainty method.

Completion evidence: A study protocol that separates observed results from extrapolation.

References and applied work

Official reference documentation · Related executed investigation · Engineering products and evidence · Related consulting service

Check the documentation for your installed version, access rights and environment. Product recommendations and learning exercises are not certification or vendor endorsement.

Core concepts to master

Full-Population Scans vs Prefix Sampling

Spot-checking the top 100 rows cannot certify completeness across 100,000 records. Completeness, uniqueness, and non-negative constraints must evaluate the entire ingested batch.

Uniqueness & Referential Integrity

Every dimension key must be unique before a 1:N join, and every fact foreign key must resolve to a valid dimension row (or an explicit Unknown bucket) so inner joins never drop revenue silently.

Financial & Row-Count Reconciliation

Compare source control totals (row count, sum of net amount, distinct orders) against target Gold tables after every run. Any non-zero variance triggers an alert.

Quarantine Tables & Exception Review

Instead of either crashing the whole pipeline on one bad row or silently ignoring it, route invalid rows to a quarantine table with reason codes for rapid remediation.

Common production pitfalls & fixes

Dashboard passes manual spot-checks, then fails executive review weeks later.

Root cause: Validation only inspected sample rows or relied on visual inspection instead of automated full-table rules.

Practical fix: Run deterministic SQL/Python assertions across 100% of ingested rows on every batch.

Revenue disappears quietly after switching a LEFT JOIN to an INNER JOIN.

Root cause: New product codes arrived in transactions before the master product table updated.

Practical fix: Preserve all facts via LEFT JOIN, map missing keys to an "Unmapped" dimension member, and alert on unmapped counts > 0.

Negative quantities or future-dated timestamps skew monthly trend lines.

Root cause: Upstream operational systems allowed free-text entry or unvalidated date overrides.

Practical fix: Enforce domain range checks (quantity >= 0 or explicit credit-note type, event_date <= CURRENT_DATE).

Production readiness checklist

  • Enforce NOT NULL and UNIQUE checks on every primary/natural key before joining.
  • Verify control totals (SUM and COUNT) match source extracts within agreed rounding tolerance.
  • Separate valid records from invalid exceptions using explicit quarantine rules.
  • Test pipelines with deliberate boundary fixtures: empty strings, NULLs, duplicates, and out-of-range dates.
  • Document every known data limitation visibly alongside published KPIs.

How Data quality connects to an end-to-end data platform

In production environments, Data quality never operates in isolation. Reliable reporting depends on aligning upstream ingestion contracts, transformation grain, semantic-model definitions, and automated validation gates across the entire stack. When teams debug slow dashboards or conflicting KPIs, the root cause usually crosses two layers—such as an unindexed SQL lookup feeding an unfolded Power Query step, or an unweighted percentage column averaged inside a DAX matrix.

To build durable skills, pair this learning path with three complementary practices: first, test every new rule or measure against a small deterministic fixture whose expected output you can verify by hand; second, document every assumption about nulls, unknown dimension keys, and timezone boundaries directly beside the code; and third, schedule automated reconciliation checks comparing row counts and financial totals before stakeholders open morning reports.

1. Define Grain & Keys First

Before writing queries or visuals, write down the exact entity each row represents and verify that join keys are unique on the lookup side. Reviewing our SQL join aggregation study shows how quickly a 1-to-many detail join inflates header totals when grain is ignored.

2. Validate Full Populations

Never rely on previewing the top 100 rows to certify dataset completeness. As demonstrated in the exact versus sampled profiling experiment, rare null keys or schema drift beyond row 100 require full-population rules and quarantine queues.

3. Preserve Weighted Ratios

Compute percentages and rates from raw numerator and denominator sums at reporting grain rather than averaging pre-calculated percentages. Test this behavior interactively in the weighted KPI calculator lab.

Practitioner study workflow & cross-verification protocol

Reading documentation passively rarely sticks when you face a broken refresh or a mismatched board metric on a Monday morning. To turn Data quality into reliable muscle memory, treat each concept in this track as a reproducible lab exercise. Start by creating a 20-row synthetic fixture with known edge cases—duplicate lookup keys, null timestamps, zero denominators, and mixed-case text—so you can calculate the expected output on paper before writing a single line of transformation logic.

Once your local test passes, cross-verify the behavior against an adjacent layer in the stack. If you are working in Excel or Power Query, confirm that your aggregation grain matches the downstream Power BI star schema and that SQL source queries push filters back to the engine rather than pulling raw tables into memory. Whenever a ratio or percentage metric appears, verify that the numerator and denominator are summed independently before division using the Weighted KPI Lab.

Finally, document the exact failure mode you prevented alongside the query or formula. Recording why a LEFT JOIN required deduplication, or why a data quality gate quarantines unexpected nulls, turns ad-hoc debugging into team-wide institutional knowledge. Cross-check unfamiliar terminology in the technical glossary and review our trust & verification commitments for how examples on this site are scoped.

Published guides

These links are selected from published article titles, summaries, and categories. Article depth varies; the list is a curated reference rather than a formal certification curriculum.

Apply, verify & continue learning

Try the weighted KPI lab to practice checking a result against explicit inputs, explore project implementation evidence, or discuss an engineering engagement.

All knowledge resources · Technical glossary · Editorial standards