Variables overview

A variable in Qlik Sense is a container storing a static value or a calculation, for example a numeric or alphanumeric value. When you use the variable in the app, any change made to the variable is applied everywhere the variable is used. You can define variables in the variables overview, or in the script using the data load editor. You set the value of a variable using Let or Set statements in the data load script.

For more information, see Using variables in expressions and Working with variables in the data load editor.

You open the Variables overview by clicking Variables in the edit bar when editing a sheet.

The variables overview lists all the variables that you can use in expressions. Expressions are used for making calculations based on the data in the app. When used, the variable is substituted by its value. Variables are case sensitive.

Note: Variables are defined using the variables overview or in the script using the data load editor.
The variables overview with the variable "My variable" selected.

Variables overview

A: New variable

Use Create new to create a new variable.

For more information, seeĀ Creating a variable.

B: Details

Click the name of a variable to display its details and show the delete and edit buttons.

C: Delete

Use Delete to delete the variable. Only possible for variables not defined in the script.

For more information, see Deleting a variable.

D: Edit

Use Edit to edit the variable. Only possible for variables not defined in the script.

E: Definition

Definition of the selected variable. Optional.

F: Description

Description of the selected variable. Optional.

G: Tags

Tags applied to the selected variable. Optional.

H: Indications

Script indicates that the variable is defined in the script.

For more information, see Working with variables in the data load editor.

I: Close

Close the variables overview.

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?