Forum Discussion

duongan1602's avatar
duongan1602
Regular Visitor
4 years ago

Filter date/month satisfy complex condition

Hi

I have a table like this: 

DateCustomerAmount
15-MarC200
1-AprA100
26-MayB200
18-JunC300
13-JunA100

 

My problemn is, for each Customer, i need to know which month he bought item and also 2 or 3 months ago, he didn't buy it. If there are 2 or months satisfying same this condition, take the month closest to today. 

 

Sorry for my bad english. I tried but its very complex. Thanks for any help. 

3 Replies