Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

YEAR COLUMN

dunkindonut7777
8 - Asteroid

Hi I would like to ask if how can I add a new column presenting the year of the data in reference to the date column.

 

Expected output:

 

DateYear (new column)
2020-10-142020
2021-05-182021

 

Can you help me with this one pls?

3 REPLIES 3
sparksun
11 - Bolide

A simple function can make it easily.

sparksun_0-1630894639042.png

 

binay2448
11 - Bolide

Find attached 2 solutions for the same you can use any one.

ArtApa
Alteryx
Alteryx

Hi @dunkindonut7777 - You can also use a datetime function, if the Date field is the Date data type: DateTimeYear([Date])

 

ArtApa_0-1630901378062.png

 

Labels
Top Solution Authors