Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How do i show only the last 3 years in my Legend

Hi Guys

I have data backing date to 1999 of subscribers (Sites) per month. I want to be able to show the financial monthly trend in a line graph only for the last three years. i.e. have 3 lines each represanting a year being shown over 12 months. Currently its showing all the years from 1999 (see picture below). Please assist.

1 Solution

Accepted Solutions
Gysbert_Wassenaar

You could replace your year dimension with a calculated dimension: =if(Year>year(today())-3,Year). And you'll probably want to check the option Suppress When Value Is Null for the calculated dimension.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

You could replace your year dimension with a calculated dimension: =if(Year>year(today())-3,Year). And you'll probably want to check the option Suppress When Value Is Null for the calculated dimension.


talk is cheap, supply exceeds demand
Not applicable
Author

Thank you so much Gysbert, this is exactly what i wanted.