Variable
- A variable holds a specific value or calculation in Qlik Sense. You can create a variable in two ways: using ‘LET’ or ‘SET’.
- LET is used for calculations, while SET is used to assign a value.
- You can create a variable in the front end or in the back end.
- The $ sign is used to retrieve the value of a variable. When you write $(variable_name), Qlik references that variable and replaces it with its current value. This lets you use variable values in your calculations or outputs easily.
Example
INPUT:
OUTPUT:
- The LET variable shows today’s date, while the SET variable displays a string.
- In the front end, you can create a new variable using the “Create New” option also you need to specify the condition.
- Here are the variables we’ve created in both the front end and back end.