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. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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

DateTimeAdd with DateTimeLastofMonth on a specific field

alphabex18
8 - Asteroid

I am using the formula tool for changing a field based on a condition. I am using the Output column "GroupTermDate", and i want to change that field. 

Here is my IF Statement that isnt working.....

 

IF [GroupTermCode] = "NP"

THEN DateTimeAdd(DateTimeLastOfMonth(),1,'month') {I cant figure where to insert the field "GroupTermDate" that i want this part to change.}

ELSE [GroupTermDate] ENDIF

 

Bottom line, if the group term code is "NP", then i want to current GroupTermDate to change to the next month on the last day of the month. If the group term code is not NP, then it can stay the same. 

 

 

Thank you

2 REPLIES 2
geraldo
13 - Pulsar

hi

 

check this formula

 

 

DateTimeTrim(DateTimeAdd ([GroupTermDate], 1, 'month'),'lastofmonth')

 

[]

alphabex18
8 - Asteroid

Bless your heart Geraldo! it works

 

Thank you so much

Labels
Top Solution Authors