Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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

1 Solution

Accepted Solutions
swuehl
MVP
MVP

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
MVP
MVP

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