Distinct Values

Ensure a column contains only distinct values or matches expected uniqueness.

Validator Overview

The Distinct Values validator ensures a column contains only distinct values or matches expected uniqueness. This validator is useful for ensuring primary key uniqueness, validating composite keys, or monitoring the cardinality of categorical field values over time.

You can configure distinct values validators to monitor the following metrics:

Metric OptionsDescription
Unique CountValidates the number of unique rows.
Unique PercentageValidates the percentage of unique rows.

The distinct values validator works similar to the Volume validator configured for the Unique Count or Unique Percentage metrics. For more information, see Volume validators.

Metric Configuration Parameters

ParametersDescription
MetricSelect the metric to calculate. See the Metric Options table.
FieldSelect a source field from a list of available fields with numeric data type. See Field selection.
Filter(Optional) Select from a list of filters or create a new filter to specify which records to include.
WindowSelect from a list of windows or create a new window to specify how to aggregate the data.
Segmentation(Optional) Apply segmentation to analyze data in separate groups. Default is Unsegmented.

Field selection

For the distinct value metrics, you have to specify one or several fields. Specifying several fields means field values are concatenated before being counted, which is, for example, useful when validating uniqueness of composite keys.

📘

Null values: Validio includes NULL values in the counts, unless you apply a NULL filter to remove them.