Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Dessagregate YYYY/MM/day or similar

buitrago_98
6 - Meteoroid

Hello team

 

How can I Dessagregate YYYY/MM/day or similar? For example, I have 8/17/2022 and want a column with 2022 but still in datetime format.

 

Thanks!

2 REPLIES 2
DataNath
17 - Castor

@buitrago_98 do you mean something like this, where you just strip the date back to the part that you're interested in? If so, the DateTimeTrunc() function is good for that - you just supply the date field and date part you want. Here's an example of Year and Month:

 

DataNath_0-1660778865715.png

Qiu
21 - Polaris
21 - Polaris

@buitrago_98 
If you mean you want only "2022" to be datetime format, that will not be possible for alteryx.

Labels