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.
You open the Variables overview by clicking 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.
A: New variable
Use Create new to create a new variable.
For more information, see Creating a variable.
Click the name of a variable to display its details and show the delete and edit buttons.
Use to delete the variable. Only possible for variables not defined in the script.
For more information, see Deleting a variable.
Use to edit the variable. Only possible for variables not defined in the script.
Definition of the selected variable. Optional.
Description of the selected variable. Optional.
Tags applied to the selected variable. Optional.
indicates that the variable is defined in the script.
For more information, see Working with variables in the data load editor.
Close the variables overview.