Skip to main content

Contains


The Contains check validates whether attribute values exist within a specified list. If the value does not match any item in the list, the check fails. This enables users to enforce accuracy-based data quality rules without writing any expressions.

Steps

  1. Navigate to the Checks tab of the Validation Rule.
  2. Click edit ✏️ button to rename the Check which is by default Chk_[Sequential_Number].
  3. Select Add, then choose Contains.
  4. Search and select the column to perform the Contains check on.
  5. Enter the list of allowed values, separated by commas.
  6. Configure the following optional setting:
PropertyDescription
Trim DataIf enabled, the engine will trim trailing/ leading spaces before applying the check.
Ignore NullsIf enabled, the engine will not apply the check, resulting in a success state.
  1. Use the test feature to validate the check logic without running the full rule. Enter sample input values in the text fields and click the Play button to view the output.
  2. Optionally, provide a Check Description to explain the purpose and business logic.
  3. Optionally, tag a Data Quality Dimension to the check.
  4. Finalize the check by selecting one of the following options:
  • Cancel – Discard the check.
  • Save – Save the check and close the configuration window.
  • Save and Next – Save the current check and proceed to create a new one.

Output

  • true – When the value is present in the specified list.
  • false – When the value is not present in the specified list.

Example:
Rule: [S.Gender] in Male,Female,Other,M,F,O
Input: Male → Output: true
Input: Undefined → Output: false

note

A single check can be applied to only one attribute. To validate multiple attributes, create separate Contains checks for each.

Contains Check