Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Fundamentals dataset: Is there an analog of .latest which gets the last N years of information?

I'd like to create a filter like "keep companies with positive earnings for the last 5 years". This would be a lot easier if there's something like .(last five years) or .(five years ago).

I would greatly appreciate some guidance as to how to create such a filter. Thanks in advance.