I feel like an example better illustrates my problem.
What I'm trying to do is select each purchase for every client one year back from their most recent purchase date. So if Client A's most recent purchase was January 5, 2017, then I want their purchases from Jan 5 2016 until Jan 5 2017. However, if someones most recent purchase was Feb 2 2017, I only want their purchases from Feb 2 2016 to Feb 2 2017.
I've been able to do this manually entering dates but I cant do this because I want to implement this data into an automated model