What I have done
- I have created a view.
- I have added a content type to display .
- I have added a filter to filter by node date content and have opted to display the post date as year in the filter.
What I want actually
I wanted to display only the years that have content. I am using Drupal 7.
Which are the ways to do this?