Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Highlighted
benz-ait
New Contributor

Set Analysis with variables

Hello guys,

How can I  replace this   champs1={'string1','string2'}  in the set analysis below  by variable ?

sum({<champs1={'string1','string2'}>} champs3)

2 Replies

Re: Set Analysis with variables

May be this

vVar

champs1={'string1','string2'}

and then this

Sum({<$(vVar)>} champs3)

Note that expression editor might show error, but ignore the error and click okay to see if you get the desired output or not.

benz-ait
New Contributor

Re: Set Analysis with variables

I have this solution and it's work very well

vVar

='champs1={"string1","string2"}'

and then this

Sum({<$(=vVar)>} champs3)