Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

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