**What I have done** 1. I have created a view. 2. I have added a content type to display . 3. 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?