Variables don’t have to be used in sql queries. They can also be used in plain text. For example, in the above example, the chart title could be:
%%P2=Average%% Temperatures for %%P1=2016%%
The default chart title would then be drawn as “Average Temperatures for 2016”. But the title would change if P1 or P2 resolved to different values.