Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How can I display in a label the value of a variable?

Hi

Figures of year 2009 must be compared with year 2008 and next year 2010 with 2009.

So I don't want to set a label with "2009" or "2008" but with the contents of a variable.

In the loadscript I have:

Let YearZ = year(date())

Let YearY = year(date())-1

Let YearX = year(date())-2

There must be a way to display (just one of) these variables in a label.

Who can point me to the documentation where this is explained?

Thank you in advance

Ton

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

in the label you have to write

=$(YearZ)

you can also concatenate these Variables

=$(YearZ)&' vs. '&$(YearY)

or something like this.

have Fun with QV

Alex:)

View solution in original post

2 Replies
Not applicable
Author

Hi,

in the label you have to write

=$(YearZ)

you can also concatenate these Variables

=$(YearZ)&' vs. '&$(YearY)

or something like this.

have Fun with QV

Alex:)

Not applicable
Author

Thank you for your helpfull reply.

It works great

Ton

Most things are easy but just the second time.