Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear All,
I have an issue with dollar sign expansion with my variable;
I have set my variable2 as =MaxString(MTH) & 'Q'
When I use the variable2 in expression
=$(Variable2) in textbox
it will return Garbage after expression 'Q'
but if I write ='$(Variable2)' it will work and show the correct value.
Could anybody explain me the reason?
I have attached my qvw file.
Thanks in advance.
Hi!
When you usea a variable with dollar expanssion there are several steps that you have to take into account:
Summarizing, when you write in a text box
=$(Variable2)
It is equivalent to
=JaimeQ
WRONG! On the other hand, when you write
='$(Variable2)'
it is equivalent to
='JaimeQ'
CORRECT!
I hope I've explained myself!
Regards,
Jaime.
Its because qlikview needs to undestand that the value passed is a string so the quotes help in providing that information, hope that helps
Hi!
When you usea a variable with dollar expanssion there are several steps that you have to take into account:
Summarizing, when you write in a text box
=$(Variable2)
It is equivalent to
=JaimeQ
WRONG! On the other hand, when you write
='$(Variable2)'
it is equivalent to
='JaimeQ'
CORRECT!
I hope I've explained myself!
Regards,
Jaime.
Thanks a ton.