Dynamic YTD Calculation depending on todays date for a count of Number of Events

This article should give you your solution.