Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Double variable

Good morning to everybody,

I have a variable ( MonthStart(Peek('massimo',0,'c'),+1)) that makes a reduction in the loaded table.

Now i need to creation of a new variable (varmod) that change the value of previous variable, like this way:

          if(IsNull($varmod),(MonthStart(Peek('massimo',0,'c'),+1))),($varmod))

The problem is that in the process of loading, ($varmod) is not seen as a variable, but as a field, which implies an error because can not find the field ($varmod).

1 Solution

Accepted Solutions
sunny_talwar

You have to use it like this:

=if(IsNull($(varmod)),(MonthStart(Peek('massimo',0,'c'),+1))),($(varmod)))


I think this will work.


Best,

Sunny

View solution in original post

3 Replies
sunny_talwar

You have to use it like this:

=if(IsNull($(varmod)),(MonthStart(Peek('massimo',0,'c'),+1))),($(varmod)))


I think this will work.


Best,

Sunny

Anonymous
Not applicable
Author

thanks!! it works!!

sunny_talwar

I am glad that it worked.

Best,

Sunny