Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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