# Managing attributes

You can add, edit and remove attributes as required. All attributes in the model belong to the Attributes Domain. When adding a new attribute, you can either select an existing attribute from the Attributes Domain or create a new Attributes Domain. Both of these options are described in the table below.

Attribute management options

| To | Do This |
| --- | --- |
| [](https://help.qlik.com/en-US/compose/Content/ComposeDWDL/Main/DW/Model/manage_attributes.htm)[](https://help.qlik.com/en-US/compose/Content/ComposeDWDL/Main/DW/Model/manage_attributes.htm)Add an attribute from the attributes domain | <ol> <li> <p>Click the <span>New Attribute </span>button in the <span>Attributes</span> toolbar.</p> <p>The <span>New Attribute</span> window opens.</p> </li> <li><a name="step2_add_attr" href="https://help.qlik.com/en-US/compose/Content/ComposeDWDL/Main/DW/Model/manage_attributes.htm"></a>To designate the attribute as a business key, select the <span>Key</span> check box.</li> <li>From the <span>Attribute domain</span> drop-down list, select the attribute domain you wish to add.</li> <li>To edit the selected attribute domain on-the-fly, click the edit button located after the <span>Attribute domain</span> drop-down list. This will open the <span>Edit - AttributeDomainName</span> window. Then, continue from Step 2 in <a href="https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Model/manage_attributes_domain.htm#Edit_attr_domain">Edit an attribute domain</a>.</li> <li> <p><a name="step4_add_existing_attr" href="https://help.qlik.com/en-US/compose/Content/ComposeDWDL/Main/DW/Model/manage_attributes.htm"></a>In the <span>Attribute name</span> field, optionally change the default instance name for the attribute domain.</p> <p>You can create multiple instances of a single Attribute Domain. This is especially useful if you want to use the same Attribute Domain across multiple tables, with each "instance" having its own unique name. This also allows you to edit the properties of each attribute without affecting the other attributes, despite all the Attribute Domain instances sharing a common Attribute Domain. For example, if the Attribute Domain name is "ID", you could create one instance for it in the "Categories" entity named "CategoryID" and another instance in the "Employees" entity named "EmployeeID".  If, however, you edit the parent Attribute Domain attribute, all instances of that attribute will be updated as well.</p> </li> <li> <p>To add a prefix to the attribute name, enter the desired prefix in the <span>Prefix</span> field. </p> <p>Adding a prefix to an attribute name allows you to add multiple instances of the same attribute domain. For example, the attribute "Employee" could become two different attributes: "ReportsTo_Employee" and "HiredBy_Employee".</p> </li> <li>Set the <span>History</span> Type and Satellite number. When the <span>History </span>Type is set to 2, a new record will be created in the data warehouse each time an attribute value changes.</li> <li>In the <span>Satellite/Hub</span> field, optionally change the satellite number.  Note that the satellite number can only be changed when the <span>History Type</span> is set to <span>2</span>. For an explanation of why this is so, see <a href="https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Model/manage_model_window.htm">The Manage Model window</a>.</li> <li>To add an expression, click the <span>fx</span> button located after the <span>Expression</span> field and then continue from <a href="https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Model/create_expressions.htm">Creating expressions</a>.</li> <li>Click <span>OK</span> to save your settings.</li> </ol> |
| Create a new attribute domain and add it to the model | <ol> <li> <p>Click the <span>New Attribute </span>button in the <span>Attributes</span> toolbar.</p> <p>The <span>New Attribute</span> window opens.</p> </li> <li>To designate the attribute as a business key, select the <span>Key</span> check box.</li> <li> <p>Click the plus sign to the right of the <span>Attribute domain</span> drop-down list.&nbsp;</p> <p>The <span>New Attribute Domain</span> window opens.</p> <ol> <li> <p>Specify a <span>Name</span> for the attributes domain.</p> </li> <li> <p>From the <span>Type</span> drop-down list, select one of the available data types.</p> </li> <li> <p>If the selected data type requires further configuration, additional fields will be displayed. For example, when Decimal is selected, the <span>Length</span> and <span>Scale</span> fields will be displayed. Set the values as desired.</p> </li> <li> <p>Optionally, specify a <span>Description</span>.</p> </li> <li> <p>Click <span>OK</span> to add the newly created attribute domain to the <span>Attribute domain</span> field and close the <span>New Attribute Domain</span> window.</p> </li> </ol> </li> <li> <p>Continue from <a href="https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Model/manage_attributes.htm#step4_add_existing_attr">Step 5 in Add an existing attribute domain</a> above.</p> <div><span>Information note</span> <p>You can also add new attribute domains via the <span>Manage Attribute Domains</span> window. For more information, see <a href="https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Model/manage_attributes_domain.htm">Managing the Attributes Domain</a></p> </div> </li> </ol> |
| Add a relationship | See [Creating and managing relationships](https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Model/create_and_manage_relationships.htm). |
| [](https://help.qlik.com/en-US/compose/Content/ComposeDWDL/Main/DW/Model/manage_attributes.htm)Add an attribute to all Satellite tables and the Hub table | You can use the Add to all Satellites and Hub option to define the same Primary Index for the Hub table and all Satellite tables.<br><br>Select the desired attribute and then click the Add to all Satellites and Hub toolbar button. The attribute is added to the Hub table and to all the Satellite tables. |
| [](https://help.qlik.com/en-US/compose/Content/ComposeDWDL/Main/DW/Model/manage_attributes.htm)Edit an attribute | Method 1:<br><br><ol> <li> <p>Select the attribute you want to edit and then click the <span>Edit</span> button in the <span>Attributes</span> toolbar.</p> <p>The <span>Edit - AttributeName</span> window opens</p> </li> <li> <p>Continue from <a href="https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Model/manage_attributes.htm#step2_add_attr">Step 2 of Add an attribute from the attributes domain</a> above.</p> </li> </ol><br><br>Method 2:<br><br><ol> <li> <p>Double-click the attribute you want to edit.</p> <p>The values in the attribute row become editable.</p> </li> <li> <p>Continue from <a href="https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Model/manage_attributes.htm#step2_add_attr">Step 2 of Add an attribute from the attributes domain</a> above.</p> </li> </ol> |
| Bulk edit history types and satellite numbers | See [Bulk Editing History types and Satellite numbers](https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Model/bulk_editing_history_types_and_satellite_numbers.htm). |
| Show an attribute's lineage | See [Lineage and impact analysis](https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Model/lineage_and_impact_analysis.htm). |
| Remove an attribute | <ol> <li>Select the attribute(s) you want to delete.</li> <li>Click the <span>Delete</span> button in the <span>Attributes</span> toolbar.</li> <li>When prompted to confirm the deletion, click <span>Yes</span>.</li> </ol> |
| Change the attribute order | Select the attribute you want to move and use the Move Up/Move to Top and Move Down /Move to Bottom toolbar buttons to move the attribute. |
| Search for an attribute | In the Search lookup field, start typing. Only attributes that match the search string will be displayed.<br><br>Information note<br><br>When searching for an attribute based on the attribute name, you must add the prefix "`name:`". For example, if you want to search for an attribute that contains “ar” in its name, type “`name: ar`” in the Search look-up field. |
| Manage the Attributes Domain | See [Managing the Attributes Domain](https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Model/manage_attributes_domain.htm). |
| Create an expression for an attribute | See [Add an attribute from the attributes domain](https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Model/manage_attributes.htm#Add_att) or [Edit an attribute](https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Model/manage_attributes.htm#Edit_att) above. |
| Export the attributes to a CSV file | Select an entity from the Entities list on the left of the Manage Model window and then select Export to CSV from the drop-down menu in the Attributes toolbar. Depending on your browser settings, you will either be prompted to download the &lt;entityname&gt;\_Attributes.csv file or it will be downloaded to your default Downloads location.<br><br>Information note<br><br>The CSV format differs slightly from the CSV format when [Exporting and importing projects using the CLI](https://help.qlik.com/en-US/compose/December2024/Content/ComposeDWDL/Main/DW/Projects/export_and_import_projects.htm). |