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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Edit show value in expression

Hi QVs,

I was trying to show only the values of a line chart which follow a condition, for example those that are in 2014. I edit the expression in show value with: =if(year(datefield)='2014', 1,0)    but it doesn't work.screen.png

I found some discussions about it but i couldn't get a solution. Any idea?

Thanks for helping.

Marc.

12 Replies
tresesco
MVP
MVP

Or, even simpler:

=Max(Year(FechaEncuesta)=2014)

Anonymous
Not applicable
Author

Tresesco, you are definitely right. I was originally working more along the lines of the attached example.

Hence the full expression.

ONLY(Year(FechaEncuesta))=2013 is another alternative to MAX

Kind regards

Niklas

Anonymous
Not applicable
Author

Works fine. Thanks.