Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

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
20 - Arcturus
20 - Arcturus

@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