I need this beast mode to switch its year offset based on which quarter it currently is. This is the first and most important part of the beast mode since it will effect how the data is read and written each quarter. I have come up with three ways to do this but none work, here is what I have come up with:
(CASE
When (CASE QUARTER(SYSDATE()) =1
THEN
`Year Offset` =-1 AND `Quarter Offset` =-1 then `Net Sub Contract amount USD` END
ELSE
`Year Offset` =0 AND `Quarter Offset` =-1 THEN `Net Sub Contract amount USD` END
END))
CASE
WHEN QUARTER(SYSDATE()) = 1
THEN
`Year Offset` = -1
ELSE
`Year Offset` = 0
END
CASE
WHEN RIGHT(`Quarter ID`,1)-0 = '1'
THEN
`Year Offset` = -1
ELSE
`Year Offset` = 0
END
They are pretty simple I think and I was hoping to get them to work, but each time I try I get a Calculated Field syntax error, any help would be appreciated!