It depends on the query being used to get the raw data.
It might be sufficient to add a "TOP 3 ... ORDER BY Year DESC, Month DESC" to the underlying query, assuming the filter condition to use the parameter is already in place. Hard to tell...
However, dealing with a month number alone might lead to unexpected results.
Example: What would you expect for month number = 1? And how does your current query is designed to apply the filter for the expected output?