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: 
alwinsch
Creator
Creator

Use of Variables in expressions

  Hi all,

I put my formula in a Variable (Vcomm).

call the result of the variable in a textbox $(Vcomm) ---> this give me a correct result

call another variable (Vgrowth) which stores the value 3%

 

Now I want another textbox that gives me the Vcomm + 3% growth.
I do this as follows: $(Vcomm) * (1+ Vgrowth)

it does not give me an exact calculation. The result is not the Vcomm + 3%

What am I doing wrong?

Kind regards,
A
lwin

 

 

 

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Does Vgrowth contain a text value '3%' or a numeric value 0.03? It should be the latter.


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
sunny_talwar

What does it give you?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Does Vgrowth contain a text value '3%' or a numeric value 0.03? It should be the latter.


talk is cheap, supply exceeds demand
alwinsch
Creator
Creator
Author

thanks,

I converted it to numeric and that did the trick.