Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Variables: To quote or not to quote

Hi,

Is there any sort of general rule for when to put quotes around a variable?

I was able to get this to work by trial and error, but I'd like to understand why.

In my app, I have a variable that stores an aggregation function name; that is, vFunctionList can have the value avg, min, max, or sum.

I have a bar chart that uses this variable in the measure: $(vFunctionList) ([Measure Data Field])

The bar chart title indicates which aggregation function is being shown: ='$(vFunctionList)'

If vFunctionList just holds a string, why do I need to treat it differently in these two places?

0 Replies