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

Dynamic Expression Labels

Capture.PNG.png

As shown in image, I have a requirement that I want label of expression change on basis of dimension(Year Month).

If Year month is greater than that of today the value should be different.

Kindly help....

Regards

Nitin

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I have used the same expression, but its not working.

I think labels works as text boxes so according to dimensions they do not vary

View solution in original post

9 Replies
Anonymous
Not applicable
Author

Can Anyone Help please..........

Not applicable
Author

what kind of chart are you using?? in a pivot table you could wite:

if(Month <= Month(Today()),'Sales Previouse','Forecast')

hope this helps!

regards,

MT

Anonymous
Not applicable
Author

I have used the same expression, but its not working.

I think labels works as text boxes so according to dimensions they do not vary

Not applicable
Author

sorry let ma correct my answer you need to write:

=if(Month <= Month(Today()),'Sales Previouse','Forecast')

regards,

MT

tresesco
MVP
MVP

Nitin Gupta

Your understanding is correct. Label doesn't recognize dimension values. Therefore you won't get different labels for any dimension.

Anonymous
Not applicable
Author

Whats the difference in both of above...

They are same ...

Anonymous
Not applicable
Author

Hi Tresesco,

I there any other way around to fullfill the requirement.

Not applicable
Author

no one has an equal-sigh (=)

jagan
Luminary Alumni
Luminary Alumni

Hi Nitin,

Please find attached file. Label doesn't recognize dimension values, so it is not possible, create a calculated dimension like in attached file.

Regards,

Jagan.