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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis - Use of Variables

Hi everybody,

I have this expression:

=sum({<_PITR_Base={1}, Tipo = {'Ventas'}>} Cnt_VTA)

I wish to make this Variable:

vTest= <_PITR_Base={1}, Tipo = {'Ventas'}>

So I can use the created Variable in a lot of expressions with Set Analysis.

Wich is the right way to put that variable in the set analysis expression?

Thanks very Much

Labels (1)
3 Replies
Anonymous
Not applicable
Author

=sum({$(vTest)} Cnt_VTA)

sunny_talwar
MVP
MVP

May be this:

=Sum({$(vTest)} Cnt_VTA)

swuehl
Champion III
Champion III

In general, when using variables, have a look at

The Magic of Dollar Expansions

The Magic of Variables