1.3.2.2 Cross-attribute Check
The Cross-attribute Check processor allows you to compare the values in two attributes in order to check the consistent application of a business rule.
Note that you can only compare attributes of the same Data Type; that is, a String attribute must be compared with another String attribute, a DATE with another DATE, and a Number with another Number.
Use Cross-attribute Check to check that the data for two related attributes is correct. For example, you may want to check that Date_Of_Death values are later dates than Date_Of_Birth values.
               
The following table describes the configuration options:
| Configuration | Description | 
|---|---|
| Inputs | Specify two attributes that you want to compare. The attributes must be of the same data type. | 
| Options | Specify the following options: 
 | 
| Outputs | Describes any data attribute or flag attribute outputs. | 
| Data Attributes | None. | 
| Flags | The following flag is output: 
 | 
The following table describes the statistics produced by the profiler:
| Statistic | Description | 
|---|---|
| Records passing comparison | The number of records that passed the comparison. | 
| Records failing comparison | The number of records that failed the comparison. | 
| Records with null value(s) | The number of records where either, or both, values being compared were null. | 
Output Filters
The following output filters are available from a Cross-attribute Check:
- 
                        Pass; that is, records where the comparison passed 
- 
                        Fail; that is, records where the comparison failed 
- 
                        Null comparison; that is, records with a null value in either or both attributes checked 
Example
In this example, two attributes are compared: DT_ACC_OPEN and DT_PURCHASED, to see how many have repeated data:
| Records Passing Comparison | Records Failing Comparison | Records with Null Value(s) | 
|---|---|---|
| 996 | 3 | 1 | 
You can drill down on the Records Passing Comparison:
| DT_ACC_OPEN | DT_PURCHASED | CrossAttributeCheck | 
|---|---|---|
| 03/01/2000 | 03/01/2000 | Y | 
| 06/01/2000 | 06/01/2000 | Y | 
| 10/01/2000 | 10/01/2000 | Y | 
| 14/01/2000 | 14/01/2000 | Y |