How to Create new field - Max date before current quarter
Q1 Nov-Jan
Q2 Feb-Apr (Current Quarter)
Q3 May-Jul
Q4 Aug-Oct
SQL
Select Product_ID,
Max(Date(Sales_Date)) as Max_Sales_date
From Table1 A
where Sales_Date='01/31/2019' (Not Hardcoded)
Group by Product_ID