Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Displaying a Variable in Expression Label

Hi,

I have a variable called vPreviousYear.  I would like to display it in an expression label.  however using $(vPreviousYear) does not work.

Is there another way to define it?  Can this even be done in Qliksense?

id like to display vPreviousYear & ' YTD SALES' for example

5 Replies
devarasu07
Master II
Master II

Hi,

I don't think any issue here, just try again and share your mock app/screen image. tks

=$(vPreviousYear) & ' YTD Sales'

Anonymous
Not applicable
Author

MockImage.PNG

Anonymous
Not applicable
Author

Please see above, its not working.  I've tried vPreviousFiscalYear alone aswell without the $ , same result.

ogster1974
Partner - Master II
Partner - Master II

You cannot dynamically set a label in straight tables for dimensions and labels.  I fact in all charts which is annoying for this and localisation needs.

You can only do it where the little Fx box is present on the right hand side of the input field.

What you can do is use that method you have in the title, subtitle and footnote so perhaps you could add the dynamic contnent in there for your chart.

Regards

Andy

Anil_Babu_Samineni

In Qliksense, Expression Label won't work with Expression. May be try this Emulating dynamic labels in Qlik Sense

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful