Using variables in expressions
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 application, 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 following actions are available in the variables overview:
- Create a new variable.
-
Edit the selected variable.
- Delete the selected variable.
Getting an overview of all variables in an application
You can get an overview of all variables in an unpublished application.
Do the following:
-
When editing a sheet, click
in the edit bar on the sheet to open the variables dialog.
The variables dialog opens and displays a list of all variables in the application and their definitions (if any).
Examples
For examples of how to use variables in expressions, see Examples of using a variable in an expression.