Rana Maninder Singh
Lesson 4 of 8Data Governance & Master Data Management

Data Quality

Lesson opener

In one line: A quality number is a count on a named population. Six dimensions answer six different questions.

Why it matters: Northline's supplier file looks "99% good" because every row has an identifier. Payments still fail, units still clash, and two rows still describe one supplier. The score measured the wrong question.

Before this lesson: Master data domains.

Purchasing is about to pay 200 supplier records. The dashboard tile is green. The steward asks which rule produced the green. Nobody can say. The tile is a colour, not a dimension.

What you will be able to do

Prerequisites

Lessons 1 to 3. You can point at a master domain and its owner.

Six questions

All formulas below are counts. The threshold you call "good enough" is a target the owner sets. Targets in the examples are illustrative. They are not an industry standard.

Completeness. Are required fields filled? Completeness = filled records / records in the population. "Required" means the owner said the field must be filled for this decision. It does not mean every blank is a legal breach.

Accuracy. Does the value match a trusted source? Accuracy = matches / records checked. The trusted source might be a signed form, a contract, or a physical count. A filled field can be complete and wrong. Publish the sample size. Do not pretend a check of 40 rows is a check of 200.

Consistency. Does the same fact agree across the places that should agree? Consistency = records that agree / records compared. Two systems may disagree because they are allowed to hold different facts. Only compare what the owner said must match.

Validity. Is the value on the allowed list or in the allowed format? Validity = records that pass the rule / records tested. "UK" in a list that only allows "GB" is invalid even if a person understands it.

Timeliness. Did the fact arrive within the lag the owner set? Timeliness = changes that arrived in time / changes that should have moved. Use the changes as the population when most rows did not change. A 2-day lag is Northline's illustrative rule, not a universal one.

Uniqueness. Is there one record for one real-world thing? If extra copies = E and rows = N, duplicate rate = E / N and uniqueness = (N − E) / N. An extra copy is a second row for the same thing, not a second site you meant to keep.

Teacher walkthrough: 200 suppliers

Population: 200 supplier rows Northline might pay. Figures are illustrative.

DimensionCountResult
Completeness of bank account190 filled190 / 200 = 0.95 = 95%
Accuracy of bank account36 of 40 matched the signed letter36 / 40 = 0.90 = 90% on the sample only
Consistency of payment term, ERP vs procurement sheet188 agree188 / 200 = 0.94 = 94%
Validity of country code vs the company list196 valid196 / 200 = 0.98 = 98%
Timeliness of address changes12 of 15 arrived within 2 business days12 / 15 = 0.80 = 80% of changes
Uniqueness8 extra copiesuniqueness (200 − 8) / 200 = 192 / 200 = 0.96 = 96%

Read the accuracy line slowly. Forty letters were checked, not two hundred. The other 160 are untested. Saying "the file is 90% accurate" without the sample size overclaims.

The four invalid country codes are the ones stored as "UK" while the list allows "GB." They may be complete, and they are still invalid.

The owner sets an illustrative target for the payment run: bank-account completeness at least 98%, and no payment to a row that failed the signed-letter check. 95% completeness misses 98%. The run does not go out on the untested rows until the steward either fills the gap or the owner explicitly excludes those suppliers. 200 − 190 = 10 suppliers have no bank account. They are excluded, not guessed.

Validation: a second person recomputes 190 / 200 and 12 / 15 from the same extracts and gets 95% and 80%. If the green tile cannot show those fractions, the tile is not a control.

A second workplace case

Customer email is a different defect. Of 500 customer rows, 460 have an email. Completeness is 460 / 500 = 92%. All 460 use a plausible format, so validity of format is 460 / 460 = 100% of the filled ones, and 460 / 500 = 92% if the population is every customer. Twenty-five rows are extra copies. Uniqueness is (500 − 25) / 500 = 475 / 500 = 95%. Duplicate rate is 25 / 500 = 5%.

Accuracy is still unknown. A filled, unique, valid-looking email can belong to the wrong person. The steward checks a sample against a source the owner trusts. Completeness did not answer that.

Failure example: the green identifier

Symptom: A quality tile stays at 99% for months. Duplicate suppliers and blank bank accounts continue. The tile's rule is "supplier id is not blank."

Diagnosis: The metric measures completeness of a field the system always fills. The root cause is a dimension that cannot fail, used as a proxy for every other dimension. Identifiers can be complete, unique as strings, and still point at two records for one supplier.

Correction: Retire the tile or relabel it "identifier filled," which is a weak claim. Add the dimension the payment decision needs: bank-account completeness, a sampled accuracy check, and uniqueness of the real-world supplier. Each gets a population and an owner.

Validation: The new sheet shows a fraction a second person can recompute. A single green number with no fraction is withdrawn.

Guided practice: three scores

Scenario: 500 customer rows. Email filled on 460. Status is on the allowed list (Active, On hold, Closed) for 490. Extra copies: 25. The owner sets illustrative targets: email completeness at least 95%, status validity at least 99%, uniqueness at least 98%.

Hints:

  1. Compute the three rates.
  2. Compare each with its target.
  3. Say which miss would still matter if you only fixed the emails.

Complete solution:

Email completeness = 460 / 500 = 0.92 = 92%. Target 95%. Miss. Gap = 500 − 460 = 40 blank emails.

Status validity = 490 / 500 = 0.98 = 98%. Target 99%. Miss. Gap = 10 rows.

Uniqueness = (500 − 25) / 500 = 475 / 500 = 0.95 = 95%. Target 98%. Miss. Duplicate rate = 25 / 500 = 0.05 = 5%.

Filling every blank email would lift completeness to 500 / 500 = 100% and would not change the 25 extra copies or the 10 bad statuses. The payment or the mailer can still hit the wrong account. The steward logs three defects, not one blended score. Validation is the three fractions on one page, each with its population.

Independent practice

Compute at least three dimensions on one extract you are allowed to use.

Acceptance criteria:

Common mistakes

  1. One blended "data quality %" that hides the failing dimension.
  2. Calling a complete field accurate.
  3. Publishing a sample result as if the whole population had been checked.
  4. Measuring timeliness on rows that never changed, then celebrating a high score.
  5. Treating two legitimate sites as duplicates, or treating two rows for one site as a rich hierarchy.

Quick check

  1. Write the completeness formula.
  2. In the 200-supplier file, what is bank-account completeness?
  3. Why is accuracy 90% not a statement about all 200 rows?
  4. What is uniqueness when 8 of 200 rows are extra copies?
  5. Why did the identifier tile stay green?

Answers:

  1. Filled records divided by records in the population.
  2. 190 / 200 = 95%.
  3. Only 40 rows were compared with the signed letter. 36 / 40 = 90% of that sample.
  4. (200 − 8) / 200 = 96%. Duplicate rate = 8 / 200 = 4%.
  5. It measured a field that is always filled, so it could not see blank bank accounts or duplicates.

Lesson summary

Six dimensions, six questions. Show the fraction and the population. Keep samples honest. A target is the owner's number. A single green tile is not a quality system.

Bridge to the next lesson

The next lesson is how someone finds the definition, the table, and the reports that will break if the definition changes. You will separate a glossary, a catalog, and lineage, and you will run a small impact check before a code changes.