A data quality metric is a quantifiable measure that assesses a specific dimension of data's fitness for use, such as accuracy, completeness, consistency, timeliness, or validity. These metrics provide objective benchmarks for data reliability and are foundational to data observability, enabling teams to monitor the health of data pipelines and enforce service-level objectives (SLOs). Common examples include the percentage of non-null values (completeness) or the count of records failing a format check (validity).
Glossary
Data Quality Metric

What is a Data Quality Metric?
A precise, quantitative measure used to assess a specific dimension of data's fitness for use.
Implementing these metrics requires defining data quality rules—testable assertions like uniqueness or range constraints—against which data is programmatically validated. In modern data contracts, these metrics form the core of the agreement between producers and consumers. They are critical for automated data testing, anomaly detection, and statistical process control, allowing engineering teams to detect schema drift or data degradation before it impacts downstream analytics and machine learning models.
Core Dimensions of Data Quality
A data quality metric is a quantitative measure used to assess a specific dimension of data quality. These core dimensions provide the framework for defining what 'quality' means for a given dataset.
Accuracy
Accuracy measures the degree to which data correctly represents the real-world entity or event it is intended to model. It is the closeness of a data value to its true, verifiable value.
- Key Metrics: Error rate (percentage of incorrect values), distance from a known source of truth.
- Example: A customer's date of birth in a CRM system matching their government-issued ID.
- Challenges: Often requires an external, authoritative source for verification, making it one of the most difficult dimensions to measure at scale.
Completeness
Completeness assesses the extent to which expected data values are present and not missing (null) in a dataset. It verifies that all required records and fields are populated.
- Key Metrics: Percentage of non-null values for a field, count of missing mandatory records.
- Example: An e-commerce order record must have values for
order_id,customer_id,product_sku, andorder_total. - Rule Types: Checks for nullability as defined by the schema and validates against business rules for mandatory fields.
Consistency
Consistency evaluates the uniformity of data across different systems, tables, or reports. It ensures that data does not contradict itself when compared from different sources or points in time.
- Key Metrics: Number of rule violations across systems, referential integrity error count.
- Example: The total revenue reported in a sales database matching the aggregated revenue in the finance system for the same period.
- Forms: Includes logical consistency (business rules) and format consistency (adherence to a standard pattern like date format).
Timeliness
Timeliness measures how current and up-to-date data is for its intended use. It combines concepts of data freshness (age of data) and latency (delay in availability).
- Key Metrics: Data freshness (time since last update), pipeline latency (source-to-consumer delay).
- Example: Stock trading algorithms require price data with sub-millisecond latency, while a monthly financial report may tolerate a 24-hour delay.
- SLOs: Often governed by Service Level Objectives (SLOs) defining acceptable freshness windows for data products.
Validity
Validity confirms that data conforms to the defined syntax, format, type, and range specified by its schema or business rules. It checks if data is well-formed and within allowable parameters.
- Key Metrics: Percentage of records passing schema validation, count of format errors.
- Example: An
emailfield must match a standard email regex pattern; atemperaturereading must be a number between -50 and 200. - Mechanisms: Enforced through schema validation, regex validation, and range checks.
Uniqueness
Uniqueness verifies that each data entity (record) is represented only once within a dataset or system, with no unintended duplicates. It is critical for master data and key-based operations.
- Key Metrics: Duplicate record count, percentage of unique values for a key field.
- Example: Ensuring a
customer_idorsocial_security_numberappears only once in a customer master table. - Techniques: Enforced via database constraints (UNIQUE, PRIMARY KEY) and monitored through duplicate detection algorithms using fuzzy matching for non-exact duplicates.
Common Data Quality Metrics and Calculations
Quantitative measures used to assess specific dimensions of data quality, enabling objective monitoring and validation.
| Metric | Definition | Typical Calculation | Common Thresholds |
|---|---|---|---|
Completeness | Measures the degree to which expected data values are present and not missing (null). | (Count of non-null values / Total expected values) * 100 |
|
Accuracy | Assesses the correctness of data values against an authoritative source of truth. | (Count of correct values / Total values checked) * 100 |
|
Uniqueness | Evaluates the absence of duplicate records for a given entity or key within a dataset. | 1 - (Count of duplicate records / Total records) | 100% for primary keys |
Consistency | Verifies that data values are uniform and non-contradictory across different systems or tables. | Count of records violating defined business rules (e.g., status logic, cross-table integrity). | 0 violations per run |
Timeliness (Freshness) | Measures the latency between when data is generated and when it is available for use. | Current timestamp - Timestamp of most recent successful data update | < 5 minutes for real-time; < 24 hours for batch |
Validity | Checks if data conforms to the defined syntax, format, type, and range specified by its schema. | (Count of values conforming to schema rules / Total values) * 100 |
|
Integrity | Ensures the correctness of relationships between data entities, such as referential integrity. | Count of orphaned foreign key records (where reference does not exist). | 0 orphaned records |
How to Implement Data Quality Metrics
A systematic approach to defining, instrumenting, and monitoring quantitative measures of data health.
Implementation begins by defining data quality dimensions—such as accuracy, completeness, consistency, timeliness, and validity—and translating each into a specific, measurable data quality metric. For example, a completeness metric for a customer table could be the percentage of non-null values in the email field. These metrics are operationalized by embedding validation checks directly into data pipelines using frameworks like Great Expectations or dbt tests, or by configuring them within a data observability platform. The resulting measurements are then tracked over time to establish a performance baseline.
Effective implementation requires setting data quality thresholds and Service Level Objectives (SLOs) to trigger alerts when metrics degrade. Metrics should be visualized on dashboards to provide at-a-glance health status and integrated into data incident management workflows for rapid triage. A mature practice involves automating metric calculation, establishing ownership with data producers, and iteratively refining rules based on their impact on downstream machine learning models and business reports. The ultimate goal is to shift from reactive firefighting to proactive quality assurance.
Frequently Asked Questions
Data quality metrics are the quantitative foundation of data observability, providing objective measures to assess the health, reliability, and fitness-for-use of data. This FAQ addresses common questions about their definition, implementation, and role in modern data engineering.
A data quality metric is a quantitative measure used to assess a specific dimension of data quality, such as accuracy, completeness, consistency, timeliness, or validity. It transforms subjective assessments of data health into objective, trackable numbers that can be monitored over time, compared against Service Level Objectives (SLOs), and used to trigger alerts. For example, a completeness metric for a customer table might be calculated as (Count of Non-Null Email Addresses / Total Row Count) * 100, yielding a percentage that indicates data coverage.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Data quality metrics are quantitative measures of specific quality dimensions. These related concepts define the frameworks, rules, and processes used to establish and enforce those metrics within data systems.
Data Quality Rule
A data quality rule is a formal, testable assertion that defines a specific constraint or condition data must satisfy to be considered fit for use. It operationalizes a quality dimension into executable logic.
- Examples include: format checks (e.g., email regex), range validations (e.g.,
age > 0), referential integrity checks, and uniqueness constraints. - Rules are the implementation mechanism for data quality metrics; a metric like "completeness" is calculated by evaluating the percentage of records that pass a "not null" rule.
- They are foundational to automated data testing and are often codified in data contracts.
Data Contract
A data contract is a formal agreement between data producers and consumers that specifies the schema, semantics, quality guarantees, and service-level expectations for a data product. It makes quality commitments explicit.
- Key components: the exact schema (structure, types), data quality rules and associated metrics (e.g., freshness SLO < 1 hour), and semantics.
- It shifts quality validation left, enabling producers to test against the contract before data is published.
- Acts as the single source of truth, preventing schema drift and breaking changes that degrade downstream data integrity.
Schema Validation
Schema validation is the process of verifying that a data structure's format, data types, and structural constraints conform to a predefined formal specification, or schema. It is a primary mechanism for enforcing structural data quality.
- Schemas can be defined using standards like JSON Schema, Avro Schema, Protocol Buffers, or XML Schema (XSD).
- Validation checks ensure fields exist, have the correct type (e.g., integer, string), and adhere to defined nullability constraints.
- A centralized schema registry often manages these schemas and performs validation in streaming pipelines to prevent malformed data.
Data Profiling
Data profiling is the automated, statistical analysis of an existing dataset to discover its true structure, content, and quality characteristics. It is the investigative process that informs the definition of data quality metrics and rules.
- Generates metadata including: data type inference, value frequency distributions, pattern recognition, null value counts, and basic statistical summaries (min, max, mean).
- Profiling results directly feed into defining baseline metrics for completeness, uniqueness, and validity.
- It is a critical first step in data discovery and is a core function of data observability platforms and data catalogs.
Automated Data Testing
Automated data testing is the practice of applying software testing principles to data pipelines, using code to programmatically validate data integrity, business logic, and quality rules. It provides continuous verification of data quality metrics.
- Test types: Unit tests for individual data transformations, integration tests for pipeline stages, and quality tests that assert data quality rules (e.g.,
assert df['id'].is_unique()). - Frameworks like Great Expectations, dbt, and Deequ codify tests that run as part of CI/CD or pipeline orchestration.
- Essential for Data Reliability Engineering, enabling error budgets and SLOs for data products.
Data Integrity
Data integrity is the overarching property of data being accurate, consistent, and reliable throughout its entire lifecycle. It is the ultimate goal enforced by data quality metrics, validation, and governance processes.
- Encompasses:
- Physical integrity: Protection from corruption during storage and transfer.
- Logical integrity: Enforcement of structural rules via schema validation and database constraints (e.g., PRIMARY KEY, FOREIGN KEY for referential integrity).
- Data quality metrics (accuracy, consistency) are direct measures of logical integrity.
- Maintained through data cleansing, normalization, and ETL validation processes.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us