Create Rules for Domains
Create data quality rules for a data domain that you can apply to different data sources.
Your user must have the DATA_DOMAIN_ADMIN role or a role that has the Create right on the data domain privilege.
- If you are not already on the Domain Management tab, go to the homepage of SAP Agile Data Preparation and select the Data Domains tile.
- Under the Domain Management tab, select the Rules icon.
-
Click + to create a new rule.
The right side panel now displays fields to define the rule. The left side shows a tile that changes dynamically as you create or edit the rule on the right side panel. This tile will have the name of the rule when you define it and the status of the rule.
-
Define the rule on the right side panel by following these steps:
- Enter a name for your rule.
- (Optional) Type a description for your rule.
-
For Record expectation, either accept the
default setting or change it.
Setting for Record Expectation
Description
Records that verify the rule pass
Pass the records that verify or comply with the rule. This setting is the default.
Records that verify the rule fail
Fail the records that verify or comply with the rule.
-
Create the conditional expressions for the rule using one of the
following options:
Option to Define Rule
Description
Text Rule
Use a text line to create a rule that has one or more conditional expressions. A conditional expression evaluates to true or false.
Decision Table
Use a decision table to facilitate creating rules that contain many conditions. A complex rule might be more readable in a decision table rather than in a text rule.
NoteIf you are using a text rule and want to use a decision table instead, click the X on the right side of the text line and click Decision Table. Similarly, if you are using a decision table, you can click the X on the right side of the decision table and then click Text Rule.
-
From the Quality Dimensions drop-down list, select the appropriate
quality dimension for this rule.
For example, if you define a rule that says the Zipcode column must not be null, then you would select the Completeness quality dimension.
- Click Save to save your rule definitions.