In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
Start Free Trial

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
7 - Meteor

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
binu_acs
21 - Polaris

@Disey one way of doing this

image.png

Disey
7 - Meteor

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 .

binu_acs
21 - Polaris

@Disey here you go

image.png

Disey
7 - Meteor

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
7 - Meteor

thank you, this is perfect for financial years

Labels
Top Solution Authors