# Creating a data quality rule

Available in...

* Cloud API Services Platform
* Cloud Big Data
* Cloud Big Data Platform
* Cloud Data Fabric
* Cloud Data Integration
* Cloud Data Management Platform
* Cloud Pipeline Designer Standard Edition
* Data Fabric

Two modes are available to create a rule:

* Basic mode: The simplified interface helps you create the rule. ![Basic mode to create a data quality rule.](https://help.qlik.com/talend/en-US/data-inventory-user-guide/Resources/images/Basic_mode.png)

  The If part represents the condition. It makes the data quality rule apply to some data only.

  The IfIf part represents the condition. It makes the data quality rule apply to some data only.

  The Then part represents the validation expression. It is executed if the condition is fulfilled.

  The ThenThen part represents the validation expression. It is executed if the condition is fulfilled.

  The Else part represents the alternative validation expression. When the condition is not fulfilled, this expression is executed.

  The ElseElse part represents the alternative validation expression. When the condition is not fulfilled, this expression is executed. The If and Else parts are optional.

* Advanced mode: Type your rule following the [The expression language used in advanced mode](https://help.qlik.com/talend/en-US/data-inventory-user-guide/Cloud/inventory-dqr-explang). This mode allows you to create more complex rules using more operators and functions than the basic mode. ![Advanced mode to create a data quality rule.](https://help.qlik.com/talend/en-US/data-inventory-user-guide/Resources/images/adv_mode.png)

To create a data quality rule, you must log in as a rule manager. For more information about the roles, see [Roles to manage and use the data quality rules](https://help.qlik.com/talend/en-US/data-inventory-user-guide/Cloud/roles-to-manage-and-use-data-quality-rules).

### In this section

* [Creating a data quality rule in basic mode](https://help.qlik.com/talend/en-US/data-inventory-user-guide/Cloud/creating-data-quality-rule-in-basic-mode)
* [Creating a data quality rule in advanced mode](https://help.qlik.com/talend/en-US/data-inventory-user-guide/Cloud/creating-data-quality-rule-in-advanced-mode)