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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
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.

Labels (1)
12 Replies
tresB
Champion III
Champion III

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.