Data quality rules: make failed checks actionable

A rule needs an eligible population, a treatment for missing values, and an owner for records it cannot assess.

Kartik Deshpande··6 min read

Your order export passes a date-format check, yet the dispatch team still cannot promise a delivery. Some dates are missing and others precede the order itself. Separate those failures before assigning work: a syntactically valid date is not evidence that the promised event or sequence is correct.

Data quality rules turn stated business requirements into repeatable checks. Define the eligible records, field or relationship, condition, threshold, treatment of missing evidence, and response to failure. Keep the rule version (including its effective date) and source cutoff with its result so a later percentage can be compared with the same test.

Start with the decision a failed record would affect

Ask the business owner what decision depends on the field and what would make that decision unsafe. A promised dispatch date may be required for confirmed orders but optional for drafts. Apply the check to the declared confirmed-order population, and preserve the draft exclusion reason rather than letting an application filter choose the denominator without review.

Write a requirement in business language before selecting a testing feature. For example, every confirmed order must have a usable promised date, and that date must not precede the accepted order date. The owner approves what usable means, including date format, calendar convention, source precedence and the handling of amended promises.

The UK Government Digital Service’s data quality issues framework connects requirements to purpose, impact and a quality target. It is public-sector guidance, not a mandatory threshold for a startup. Use the distinction to prioritize an operationally consequential defect instead of treating every failed field as equally urgent.

Keep the requirement beside its executable interpretation

Give each rule a stable identifier, owner, business purpose, eligible population and effective version. Add its source fields, join keys, test expression, threshold, evaluation schedule and exception destination. Specify whether the check evaluates a record, a group or an entire extract, since those grains produce different counts and different kinds of investigation.

AWS’s DQDL reference provides a concrete implementation example: a case-sensitive ruleset can contain IsComplete and IsUnique rules. Those names describe checks, not a complete business requirement. A customer identifier can be present and unique while referring to the wrong customer, so the supporting identity and relationship rules still need review.

Decide how blank strings, whitespace, nulls and unreadable values are normalized before testing. Preserve the original value for investigation. A parser that replaces an unreadable date with today can make a required-field check pass while introducing a date nobody supplied; normalization must not manufacture the evidence the check is intended to examine.

Calculate separate failures on one declared population

Assume a hypothetical extract contains 100 distinct confirmed orders at a fixed cutoff, with every order date present and parseable. Eight promised dates are missing, two other values cannot be parsed, and six of the 90 parseable dates precede their order dates. These groups do not overlap. The example proposes reporting rules and contains no measured customer results.

CheckPopulation and outcomeReported result
Date present92 present, 8 missing out of 10092% complete
Date parseable90 parseable, 8 missing, 2 unreadable out of 10090% parseable
Date sequence84 pass, 6 fail, 10 unassessable out of 10084% pass across the full cohort
Sequence among parseable dates84 pass out of 90 assessable93.3%, conditional on assessability

The 93.3% conditional result is useful for the sequence test, but it does not establish that 93.3% of all confirmed orders have an acceptable promise. Ten orders cannot reach that test. Keep the 84 passes, six sequence failures and ten unassessable records visible, with the full-cohort denominator beside the conditional calculation.

If release requires every order to pass presence, parsing and sequence checks, only 84 of the 100 qualify under these assumptions. The eight missing dates also fail parsing eligibility, so adding failure counts across rules would double-count them. Build the release population by distinct order ID and the complete acceptance expression, not by subtracting a sum of failed tests.

Assume the business owner requires all confirmed orders to have a usable promise before a particular dispatch action. That is an invented acceptance rule for this example, not an industry benchmark. Another workflow can approve a different threshold, but it must identify what may proceed and which affected records remain withheld or routed for review.

Preserve what the test could and could not establish
Pass

Condition supported

Fail

Condition contradicted

Unassessable

Evidence insufficient

An unassessable result needs missing evidence resolved before it can become a supported pass.

Assign the defect to the owner who can change it

Route a missing promised date to the source owner, an impossible sequence to the operations reviewer, and an unreadable export field to the integration owner. Include the record ID, original value, rule version, first-seen time and affected decision. An alert without these references makes the recipient repeat the diagnosis before acting.

Separate an approved exception from a corrected record. A reviewer may allow a time-limited operational workaround while the source remains defective. Record the reason, permitted use, owner and expiry, then re-evaluate the underlying rule after correction. Closing a ticket should not erase the earlier failure or convert the workaround into source truth.

Use data quality dimensions to distinguish what each check can establish. Presence supports completeness; a permitted format supports a validity claim; accuracy needs evidence that the value corresponds to the intended fact. Several mechanical checks can pass without providing that external comparison.

Where Permute connects a failed check to its evidence

Permute sells connected business data and custom applications. We can connect permitted Excel exports and source records, reconcile their identifiers, and apply your declared requirements in a transformation. An application can expose the failed record beside the supplied source reference so the assigned reviewer can inspect the same evidence.

We keep business definitions and reporting scope explicit so a check can be reused when inputs refresh. Confirm source coverage, refresh timing and the required result detail during setup. If the incoming extract omits canceled or rejected records, a passing result on that extract cannot establish quality across the full source system.

An operations lead could ask which confirmed orders have an unassessable promise, then review missing dates separately from contradictory sequences. We sit underneath Claude, ChatGPT and Copilot, supplying governed data to the tools people use. Access to the exception details must follow the permissions assigned to the intended reviewer.

Inspect a failed quality check

Use a permitted extract and an approved acceptance rule to explore which records need review.

Version the rule before comparing its trend

Save the rule definition, source scope, evaluation timestamp and outcome counts with each release. If the accepted date convention changes, publish a new rule version and explain whether earlier results were recalculated. A higher pass rate after excluding a difficult channel is a scope change until comparable evidence supports an improvement claim.

Use data reconciliation to check that the tested extract represents the expected source population. A perfect field-level result on half the expected orders is incomplete coverage. Keep extract coverage, rule pass rate and unresolved exceptions as separate measures instead of averaging them into one reassuring number.

Keep business acceptance and source correction with their owners

We apply approved definitions; we do not choose business risk tolerance or certify that an input is accurate. The analytical workflow described here does not amend promises or write corrections back to order systems. Source owners make those changes through their authorized processes, and missing source history limits what an earlier result can prove.

Retain the outcome and its response

Data quality rules become actionable when their population, condition and response are stated together. Preserve missing or unreadable evidence as its own outcome rather than allowing it to disappear from the denominator. In the dispatch example, distinguish the 84 supported passes from six contradictions and ten unassessable orders before deciding what may proceed. Retain rule versions and source references so a later correction can explain the change.

Review a check whose passing rate conceals open records

Bring the tested population, rule version and unassessable records to trace the acceptance gap.

Questions about data quality rules

What should a rule show when no eligible records arrive?

Show the eligible count and a not-evaluated or not-applicable state under the approved reporting convention. Zero eligible rows do not demonstrate that the expected source arrived. Check extract coverage before presenting the empty population as a successful quality result.

Can an estimated value satisfy a required-field rule?

Only if the approved requirement permits that value type and retains its estimated status. Store its method and source separately from an observed value. A nonblank estimate should not silently qualify as evidence of an actual promised date.