Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
elena_isupova
New Contributor III

Variable can't be used in other variables

Hey guys!

I have a problem:

I have 2 states in the app, therefor I process the maximum value of them both dynamically. It is vMaxValue.

I want to create 5 approximately equivalent intervals, that is why I add new variable: vInterval, which is: Floor($(vMaxValue)/5).

It returns a numeric value. And it is shown in the text output box right.

But when I call it in another variable, nothing is returned back.

If I type into vInterval value straight in the variable expression, then it works right.

How can I manage with this issue?

Thanks

Elena

1 Solution

Accepted Solutions
MVP & Luminary
MVP & Luminary

Re: Variable can't be used in other variables

Putting an = character in front of the expression might help.


talk is cheap, supply exceeds demand
4 Replies
MVP & Luminary
MVP & Luminary

Re: Variable can't be used in other variables

Putting an = character in front of the expression might help.


talk is cheap, supply exceeds demand
elena_isupova
New Contributor III

Re: Variable can't be used in other variables

Thank you Gysbert, I fixed the expression for vInterval with equal sign. It worked!
Could you please explain the reason for that sign?

Elena

MVP & Luminary
MVP & Luminary

Re: Variable can't be used in other variables

It makes sure that the variable vInterval gets a numeric value and won't return the entire expression string that then has to be evaluated in another dollar expansion.


talk is cheap, supply exceeds demand
elena_isupova
New Contributor III

Re: Variable can't be used in other variables

I got it!
Thank you very much