Forum Discussion
BobF
02-28-2022Data Storage
Hi
I've done something similar, adding a new custom field e.g. "Monthly_Report_Date", based on the date, using a Case statement to build it up. You can add as many values you want. Below shows an example for just 3 values
Case
WHEN MonthDiff(CURRENTDATE(),[<Your_Date>])=0 THEN 'Current Month'
WHEN MonthDiff(CURRENTDATE(),[<Your_Date>])=1 THEN 'Last Month'
WHEN MonthDiff(CURRENTDATE(),[<Your_Date>])=2 THEN 'Two Months Ago'
END