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

Date time trim doesn't work

Data_Alter
8 - Asteroid

In my workflow below I want that

 

if the date in "Aim end" column is last day of the month then it should stay as that but if the date is any other day of month then it should get converted to first day of the month.

 

My formula is converting it to first day always.

 

Please can someone suggest the correction in formula.

2 REPLIES 2

Hi @Data_Alter 

 

I just removed the time from your todatetime formula (since the initial Aim end does not include time) to be as following :

 

if

todate(DateTimeTrim([Aim end],"lastofmonth")) = [Aim end]

then

[Aim end]

else

DateTimeTrim([Aim end],"firstofmonth")

endif

Qiu
21 - Polaris
21 - Polaris

@Data_Alter 
Sometimes just a small things get we stuck.😁1208-Takkarstar.PNG

 

Labels
Top Solution Authors