Re: How to get the Calendar with Only Year and Month?
That is a different question. For the best response, I would suggest that you create a new post.
In the post, provide details of the ranges you want (eg MTD based on the selected month/year, YTD, prior MTD, prior YTD etc etc).
There are many ways of dong this and the best way will depend on your model's data structure, the user requirements etc etc. The more information you provide, the better. If possible, post your model or a representative sample when you create the new post.
BTW if the original question has been answered, please mark the correct answer.
Logic will get you from a to b. Imagination will take you everywhere. - A Einstein