I am using Table Transformer to uses the "Create" column to create a new column "MTTR Projection" that adds days to the create column. I then created an additional column to calculate the difference between the new "MTTR Projection" column and the "Resolved Column" called "MTTR Variance".
I feel like this was working previously but now just loads 0 even when there is a resolved date. I'm wondering if its the date format, or if my SQL isnt written correctly to reference a previously created column.
SELECT *,
FORMATDATE(DATE_SUB(T1.'Created', INTERVAL -126 DAY)) as 'MTTR Target',
DATEDIFF(day,T1.'Resolved', 'MTTR Target')
AS 'MTTR Variance'
FROM T1
