Presentation variable is the only variable created and used in the presentation services like in dashboard and Answers.
Presentation variables are simple to create unlike dynamic and session variables. You can call presentation variable in different areas for different purpose in Answers title, filter, dashboard prompt etc.
How to create Presentation Variable
Go to dashboard prompt and on the set variable click on presentation variable and provide any name to it.
Note: Set variable option will pop up only when you select either drop-down list or Edit box in the Control option. This will not work if you select multi-select option.
Save the prompt, the presentation variable will be created.
Where to use Presentation Variables
Report Title
On the sub title, use your presentation variable as Sales report for @{Country} Country.
@{Country} – This is the simple format to call the presentation variable in different areas. Country is the presentation variable name.
@{variables.<variableName>}{<default>}[format] – This is the complete syntax for using presentation variable.
Example: @{Country}{‘America’}, @{Date}{DATE ’2011-05-31′}
Save the report and check on the dashboard.
You can see that the presentation variable is changed in the report title to the country we selected on the prompt.