Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
alan_grn
Creator II
Creator II

Variable as dimension

I have the following code as a dimension.

When I place it in the pivot table as dimension it works.

=aggr(Sum({< DisplayCobDate =, [CobDate]={'$(vDate)'} >}$(avariable)),[FieldName])

If I then use a variable name test and place =$(test) in the dimension it does not work.

What do I need to do to get this working?

3 Replies
senpradip007
Specialist III
Specialist III

svsudhakar
Creator
Creator

Please share the sample application

JonnyPoole
Former Employee
Former Employee

Ty this (with single quotes incl). It will get you something like the chart below.

='$(test)'

Capture.PNG.png