Skip to content

Introduction to the Distinct Count Check

The Distinct Count check asserts that the number of distinct values in a field satisfies a comparison against an expected number. Use it when the cardinality of a column is itself the rule: a lookup table with a known number of entries, a dimension that should not gain categories overnight.

This section is the complete guide to the check. The Deep Dive covers the definition, properties, and full evaluation semantics, explains how anomalies are reported, walks through production examples, and collects best practices; the How-tos are step-by-step tutorials for creating, editing, and deleting a check; the API page documents the payload for programmatic use; and the FAQ answers the most frequent questions.

Next Steps

  • How It Works


    The complete reference: definition, field scope, the comparison operators, approximation, NULL handling, filter behavior, and why coverage does not apply.

    How It Works

  • Anomaly Reporting


    The anomaly message the check produces, what the counts mean, and why per-row reporting does not apply.

    Anomaly Reporting

  • Examples


    Three production scenarios with sample data, anomaly messages, and the SQL equivalent of what the check evaluates.

    Examples

  • Best Practices


    Guidelines for choosing the operator, allowing for approximation, and keeping the signal clean.

    Best Practices

  • Permissions


    The team permission each action needs: view, create, edit, archive, restore, and delete.

    Permissions

  • Create a Check


    Step-by-step tutorial for creating a Distinct Count check with a comparison and a value.

    Create a Check

  • Edit a Check


    Step-by-step tutorial for changing the operator or the expected count, or adjusting the filter.

    Edit a Check

  • Delete a Check


    Step-by-step tutorial for archiving a check and deleting it permanently.

    Delete a Check

  • Troubleshooting


    Common problems with approximation, NULLs, operator choice, and anomaly reporting, and how to resolve them.

    Troubleshooting

  • API


    Payload shape and field notes for creating a Distinct Count check programmatically.

    API

  • FAQ


    Short answers to questions about approximation, operators, NULLs, and anomaly reporting.

    FAQ