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. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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

How to deduct the number of months in the date column

enkenmendoza
7 - Meteor

Hi  i would just like to ask If how can I make another column if I have these data. I have a date format in the column (yyyy-M-dd) I would just like to trim it through adding another column:

 

How to create another column (period column) using the raw field:

 

Date:                                   Expected output (Period)

2020-02-24                                  01

2020-03-11                                  02

2020-04-10                                  03

 

Basically my period 1 starts from the month of february, then period 2 is march so on and so forth.

 

 

 

 

 

 

2 REPLIES 2
Qiu
21 - Polaris
21 - Polaris

@enkenmendoza 

Hope I understand your correctly

ASd2A.PNG

AngelosPachis
16 - Nebula

Hi @enkenmendoza ,

 

I have added some more dates to check if the formula works even if the month is January, which should return you Period =12

 

AngelosPachis_0-1618232561121.png

 

Hope that helps,

 

Angelos

Labels
Top Solution Authors