Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dos anybody know why this expression is not working?

I have in inbox that the label need to include the value of a variable. So following is the expression I wrote to the inbox box

='2.    ' & $(VARIABLE_1)+1 & ' to '

For Example:

If variable 1 is 10 than I am expected to see '2.   10 to'

But now what I got is only:

' to'

Does anyone know why it is not working?

Thanks in advance!

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

='2.    ' &  ($(VARIABLE_1) +1) & ' to '



OR


='2.    ' &  $(VARIABLE_1 +1 ) & ' to '

Hope this helps you.


Regards,

jagan.

View solution in original post

4 Replies
Not applicable
Author

Just a typo from my example,

If variable 1 is 10 than I am expected to see '2.   11 to'

 

But now what I got is only:

 

' to'

Thanks!

tamilarasu
Champion
Champion

Hi Elim,

Just add brackets like below,

='2.    ' & ($(VARIABLE_1)+1) & ' to '


If you want to add single quote around the output, then try,


=chr(39) & '2.    ' & ($(VARIABLE_1)+1) & ' to ' & chr(39)

Let me know.

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

='2.    ' &  ($(VARIABLE_1) +1) & ' to '



OR


='2.    ' &  $(VARIABLE_1 +1 ) & ' to '

Hope this helps you.


Regards,

jagan.

Anonymous
Not applicable
Author

Try this...