We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Date formula

miki2024
6 - Meteoroid

Hi there,

I'm going to run a new campaign to reward new members who join the club for 9 months. 

In our customer database, we have customers' join date data (in date format: YYYY-MM-DD).

 

I wonder what goes wrong with my following formula

 

If DateTimeDiff([Club Entry Date],DateTimeToday(),"month")<=9 THEN "Y" ELSE "N" ENDIF

 

Thanks!

1 REPLY 1
ShankerV
17 - Castor

Hi @miki2024 

 

Please use the below, just interchanged the dates in your formula.

 

If DateTimeDiff(DateTimeToday(),[Club Entry Date],"month")<=9 THEN "Y" ELSE "N" ENDIF

 

ShankerV_0-1680703989929.png

 

Many thanks

Shanker V

 

Labels
Top Solution Authors