Visualizations in Qlik Sense are built from charts, which are built from dimensions and measures. You can make your visualizations more dynamic and complex with expressions.
Visualizations can have titles, subtitles, footnotes, and other elements to help convey information. The elements that make up a visualization can be simple. For example: a dimension consisting of a field representing data, and a title consisting of text.
Measures are calculations based on fields. For example:
What is an expression?
An expression is a combination of functions, fields, and mathematical operators
All measures are expressions. The difference between measures and expressions is that expressions have no name or descriptive data.
You can build visualizations that are more dynamic and powerful by using expressions for dimensions, titles, subtitles, and footnotes. This means, for example, that instead of a static text, the title of a visualization can be generated from an expression whose result changes depending on your selections.
Where can I use expressions?
When you are editing a visualization, if an symbol can be seen in the properties panel, you can use an expression. Click to open the expression editor, which is designed to help you build and edit expressions. Expressions can also be entered directly into the expression field.
An expression cannot be saved directly as a master item. However, master measures and master dimensions can contain expressions. If an expression is used in a measure or dimension which is then saved as a master item, the expression in the measure or dimension is preserved.
When are expressions evaluated?
In a load script, an expression is evaluated as the script executes. In visualizations, expressions are evaluated automatically whenever any of the fields, variables, or functions that the expression contains change value or logical status. A few differences exist between script expressions and chart expressions in terms of syntax and available functions.