In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

trailing 12 month indicator

ntudev
8 - Asteroid

Hi Everyone,

 

How would i add a trailing 12month indicator, starting today for example? I just want it to say yes if the date is within the last 12 months. I attached a sample excel sheet.

4 REPLIES 4
gautiergodard
13 - Pulsar

hey @ntudev 

Here is one way to do it!

if [Date] >= datetimeadd(DateTimeToday(),-12,'months') then "Yes"
else "No"
endif
ntudev
8 - Asteroid

what would be a formula if instead of just today i want to put '2022-07-30'?

ntudev
8 - Asteroid

what would be a formula if instead of just today i want to put '2022-07-30'?

gautiergodard
13 - Pulsar

@ntudev sorry for the late response.

If you wanted to make it a static date you could use this:

 

if [Date] >= datetimeadd(todate('2022-07-30'),-12,'months') then "Yes"
else "No"
endif
Labels
Top Solution Authors