Skip to content

Predefined Value Check

The Predefined Value Check rule validates that column values match one of a predefined set of static values. It ensures consistency, accuracy, and integrity in data by restricting entries to only valid, accepted values.

Example Usage:
Check that product categories only include allowed values like Electronics, Furniture, Apparel, or that country codes match predefined ISO codes.

Configuration Fields

Field NameDescriptionRequiredData Type
Static ValuesArray of allowed values to validate againstYesstring[]
Case SensitiveWhether matching should consider letter casingNoBoolean

Success Criteria Configuration

Field NameDescriptionRequiredOptionsDefault
OperatorComparison operation for match countYesGreaterThan, LessThan, EqualTo, Between-
Threshold ValueSingle comparison value (for non-Between operators)ConditionalNumber-
Threshold MinMinimum value for Between operatorConditionalNumber-
Threshold MaxMaximum value for Between operatorConditionalNumber-
Is PercentageWhether threshold represents percentage of total rowsNotrue/falsefalse
Allow NullsWhether null values should be treated as validNotrue/falsefalse
Check For MatchWhen false, validates for negation of the conditionNotrue/falsetrue

Sample Input Data

IDVegetablesFruits
1TomatoPineapple
2Lettuceapple
3CarrotMango
4OnionApple
5broccoliBanana

Sample Configurations

Example 1: Vegetables Column Check

Configuration FieldValue
Static Values["Tomato", "Onion", "Broccoli"]
Case Sensitivetrue
OperatorLessThan
Threshold Value4
Is Percentagefalse
Allow Nullsfalse
Check For Matchfalse

Explanation:
Validates that fewer than 4 Vegetables entries match the predefined values exactly (case-sensitive).

Example 2: Fruits Column Check

Configuration FieldValue
Static Values["Apple", "Banana", "Mango", "Pineapple"]
Case Sensitivetrue
OperatorLessThan
Threshold Value4
Is Percentagefalse
Allow Nullsfalse
Check For Matchfalse

Explanation:
Validates that fewer than 4 Fruits values match the predefined static values exactly.

Sample Output

Column NameRule NameSuccess CountFailure CountNull CountWithin Threshold
VegetablesPredefined Value Check230Yes
FruitsPredefined Value Check410No