Hi,
I am new to alteryx and I will appreciate any help offered.
I have a formula in tableau that I want to translate into Alteryx. Please see below. Is it possible to duplicate this formula in Alteryx or is there a shortcut to this? My output goal is to calculate days remaining until due date
if (field1) = 'Data pass' and (field 2) = 'Data fail'
then
(if 730-DATEDIFF ('day',(field 3- state change date), [as of date])
< 0 then 365- DATEDIFF ('day', (field 3- state change date), [as of date])
else 365- DATEDIFF ('day', (field 3- state change date), [as of date]) end)
elseif (field1) <> 'Data pass' and (field2) = 'Data fail' then
(if 730-DATEDIFF('day', (field 3- state change date), [as of date]) < 0
then 730-DATEDIFF('day', (field 3- state change date), [as of date])
else 730-DATEDIFF('day', (field 3- state change date), [as of date])
END)
END
Thank you in advance!
*as of date is a parameter in tableau