I believe what you want to do is a nested sort. The following KB provides instructions on how to do this:
I have also reattached your workbook with this done (although I've used Index instead of Min. of Number of Records).
Hope this helps!
top n over time.twbx.zip 27.6 KB
I was able to use your sample and apply it to my workbook!