Skip to content

Formula Integrity Check

The Formula Integrity Check ensures that computed or derived values in a dataset are accurate by validating them against predefined formula expressions.
This rule is commonly used to:

  • Validate calculated financial totals like OrderAmount = Quantity × UnitPrice
  • Verify that derived KPIs or metrics follow expected business rules

Example Usage:
Ensure OrderAmount in an e-commerce orders table equals Quantity × UnitPrice for every transaction.


Configuration Fields

Rule-Specific Configuration

Field NameDescriptionRequiredData Type / Options
Formula ExpressionLogical/mathematical expression for validation (e.g. A + B)YesString
OperatorComparison operator for evaluating formula resultYesEquals, Not Equals, Greater Than, Less Than, Greater Than or Equals, Less Than or Equals

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 threshold represents a percentage or absolute countNotrue / false (default: false)

Sample Input Data

OrderIDQuantityUnitPriceOrderAmount
125001000
234501400
352001000
41700700
542501000

Sample Configurations

Example 1: Check OrderAmount Calculation Accuracy

Configuration FieldValue
ColumnOrderAmount
Formula ExpressionQuantity * UnitPrice
OperatorEquals
Success Criteria OperatorGreaterThan
Threshold Value80
Is Percentagetrue

Explanation:
Checks whether OrderAmount equals Quantity × UnitPrice in each row. Rule passes if at least 80% of records match the formula.


Sample Output

Column NameRule NameSuccess CountFailure CountNull CountWithin Threshold
OrderAmountFormula Integrity Check410Yes