Skip to content

Value Range Validation

The Value Range Validation rule ensures that values in a specified column fall within defined ranges (inclusive of boundary values).
This rule is commonly used to:

  • Validate numeric values against acceptable business ranges
  • Verify dates fall within expected time periods

Example Usage:

  • Check if all employee salaries are between $40,000 and $80,000
  • Verify that hire dates fall within the current fiscal year

Configuration Fields

Rule-Specific Configuration

Field NameDescriptionRequiredData Type
Start Value/DateMinimum allowed value (inclusive)YesNumber / Date
End Value/DateMaximum allowed value (inclusive)YesNumber / Date

Success Criteria Configuration

This section defines how the rule’s outcome is measured against expected thresholds.

Field NameDescriptionRequiredOptions / Format
OperatorComparison operation for result countYesGreaterThan, LessThan, EqualTo, Between
Threshold ValueValue for comparison (single value for most operators)ConditionalNumber
Threshold MinMinimum value (for Between operator)ConditionalNumber
Threshold MaxMaximum value (for Between operator)ConditionalNumber
Is PercentageWhether the threshold represents a percentage of total rowsNotrue / false (default: false)
Allow NullsWhether null values should be treated as validNotrue / false (default: false)
Check For MatchWhen false, validates for negation of the conditionNotrue / false (default: true)

Sample Input Data

employee_idagehire_datesalary
1252023-01-1545000
2322020-05-2268000
3172024-03-1032000
4282022-11-0552000
5null2024-02-18null
6452019-08-1475000
7522018-04-3082000

Sample Configurations

Example 1: Numeric Range Check

Configuration FieldValue
Columnsalary
Start Value40000
End Value80000
OperatorGreaterThan
Threshold Value5
Is Percentagefalse
Allow Nullsfalse
Check For Matchtrue

Explanation:
Validates that at least 5 salary values fall between $40,000 and $80,000.


Example 2: Date Range Check

Configuration FieldValue
Columnhire_date
Start Date2023-01-01
End Date2024-12-31
OperatorBetween
Threshold Min4
Threshold Max6
Is Percentagefalse
Allow Nullsfalse
Check For Matchtrue

Explanation:
Validates that 4–6 hire dates fall within January 1, 2023 to December 31, 2024.


Sample Output

Column NameRule NameSuccess CountFailure CountNull CountWithin Threshold
salaryValue Range Validation421No
hire_dateValue Range Validation331Yes