I am using the Table Transformer Macro from tickets coming in from Jira with a Planned End Date. I want to take that date and add a new column titled Target Quarter, based on delivery.
Currently all columns are returning with the else FY24Q3, regardless of if they fit the constraints of the other quarters. What is incorrect here?
SELECT
*,
CASE
WHEN
'Planned End Date' >= "Jun 01, 2023"
AND 'Planned End Date' <= "Aug 31, 2023"
THEN
"FY24Q1"
WHEN
'Planned End Date' >= "Sep 01, 2023"
AND 'Planned End Date' <= "Nov 30, 2023"
THEN
"FY24Q2"
ELSE
"FY24Q3"
END
AS 'Target Quarter'
FROM
T1