Hi Nithin,
You can use Calculated field to group those under last n months and then display using filter or color shelf.
1. First create a calculated field,
![](https://www.edureka.co/community/?qa=blob&qa_blobid=12791497667805380551)
2. Add year in the filter shelf to view only that years details.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=4702869719101050483)
3.Create N value as a parameter.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=16804520086819254481)
4. Now enter N value and add the created calculated field in color shelf to view details. (below shown for N = 1, 3)
![](https://www.edureka.co/community/?qa=blob&qa_blobid=11049152250298920253)
Hope this helps you.