• 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?



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]