I'm trying to recreate a formula that I used to use in Excel that would append a "Recency" flag based on the difference between today's date and the date in my data. My formula looks like this:
IF(ROUNDDOWN(($N$1-M2)/7,0)<2,"(1)0-2 Weeks",
IF(ROUNDDOWN(($N$1-M2)/7,0)<6,"(2)2-6 Weeks",
IF(ROUNDDOWN(($N$1-M2)/7,0)<12,"(3)6-12 Weeks",
IF(ROUNDDOWN(($N$1-M2)/7,0)<26,"(4)12-26 Weeks",
"(5)26-52 Weeks")))))
Where $N$1 = today's date and M2 = the date in my data.
Does anyone know the best way of going about this in Alteryx please?
Thank you