# Applying a data quality rule to a data model

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
* Qlik Talend Cloud Enterprise Edition

## Before you begin

* You created at least one data model and added attributes to it.
* You created at least one data quality rule.

## About this task

In this example, you are using the [Creating a data quality rule in basic mode](https://help.qlik.com/talend/en-US/data-stewardship-user-guide/Cloud/creating-data-quality-rule-in-basic-mode) data quality rule.

## Procedure

1. Log in as a campaign owner with the Rules - View permission.

   To have the Rules - View permission, the roles Rule - Manager or Rule - Viewer must be assigned to you.
2. In the left panel, click Data models and select a data model.
3. Click Rules &gt; Apply rule. The Apply a rule wizard opens.
4. Select the rule: ScholarshipProgram.
5. Click Apply. The rule is displayed in the Rules tab.

   ![Rules tab in a data model.](https://help.qlik.com/talend/en-US/data-stewardship-user-guide/Resources/images/cloud-tds-dqr-rules-tab.png)
6. Associate the variables to the attributes:
   * StatusCode to Code
   * Citizenship to Nationality
   * ScholarshipProgram to Program
   * Date to Effect. In this example, you are using the operator is, text type, for the variable Date. The attribute Effect must be of text type, not date type.

   When the variable and attribute names are similar or identical, the variables are automatically associated to the attributes. If you want to change the attribute, click it and select another one from the drop-down list.
7. Click Save data model.