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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Forecast for current year

Hello everyone,

I want to show dotted line for current year in line chart.

i am not getting how to show expression for current year.

i used below exp but it show dotted line after current date but i want show for current year(not selected year)

=IF(date>Today(),'<s3>','<s1>')

Thanks.

Labels (1)
1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

IF(Year(OrderDate) = Year(Today()),'<s3>','<s1>')

Replace OrderDate with your Date Field

Make sure that you have to use this expression in Line Style

Capture.JPG

View solution in original post

2 Replies
MK_QSL
MVP
MVP

IF(Year(OrderDate) = Year(Today()),'<s3>','<s1>')

Replace OrderDate with your Date Field

Make sure that you have to use this expression in Line Style

Capture.JPG

Anonymous
Not applicable
Author

Perfect.. Thank you Manish