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: 
Anonymous
Not applicable

using variable with "=" in expression

Hi, all,

In my case, I would like to display the currency symbol based on the currency code:

I am confused to using variable in case like below:

in script:

let vCurrencyCode='Currency'; // Currency is a field

set EUR = chr(num#('20AC','(hex)'));

set USD = chr(ord('$'));

And in my dash, in order to get the currency symbol:

the expressions must be like this:

$($(=$(vCurrencyCode)))

And expression like below dose not work:

$($($(vCurrencyCode)))

May I know why a "=" is needed? To change a string from $(vCurrencyCode) to a variable?  Then why

$(=$(=$(vCurrencyCode))) is not needed?


Thanks very much

Zhihong

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Have a look at

The Little Equals Sign

edit: and don't stop at the end of the blog post without following the links..

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Have a look at

The Little Equals Sign

edit: and don't stop at the end of the blog post without following the links..

Anonymous
Not applicable
Author

Hi, Swuehl,

Thanks, I think that is the page I am searching for.

Zhihong