In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!

Alteryx Designer Desktop Discussions

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

Create a new column for YEARS

Disey
6 - Meteoroid

Hi

 

I am trying to create a new column for some data which has a number of months/years in it's own column and I want to create a new column to represent the financial years for this data. eg: 

YEAR_MONTH
201912
201810
201810
202002
201904
201908
201806
202002
201907
201811
201805
201912
201906

 

I want an extra column showing : 

YEAR

2018/19

2019/20 etc

 

the Year Month column is currently  'Int32' if this helps

 

thanks

6 REPLIES 6
binuacs
21 - Polaris

@Disey one way of doing this

image.png

Disey
6 - Meteoroid

Thank you but I need the financial year ie: 2018/19, 2019/20, 2020/21 etc, this example works when i try it but it has the month after the / which is also in your example and I need the year .

binuacs
21 - Polaris

@Disey here you go

image.png

Disey
6 - Meteoroid

Perfect, it worked,thank you 😃  I would never have fathomed that out myself 🤷‍

DavidSkaife
14 - Magnetar

Hi @Disey 

 

If your financial year runs April to March then try this:

 

Capture.PNG

Disey
6 - Meteoroid

thank you, this is perfect for financial years

Labels
Top Solution Authors