Advent of Code is now back for a limited time only! Complete as many challenges as you can to earn those badges you may have missed in December. Learn more about how to participate here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Help require on string Month

alt_tush
9 - Comet

Hi,

 

I have a below string column month with data

 

Month

Jan

Feb

Mar

 

I need expected output like month number for ex. for jan 1, feb 2 etc.

 

Expected output

 

Month    Month_No.

Jan        1

Feb        2

Mar        3

 

Please help

Thank you in advance.

2 REPLIES 2
messi007
15 - Aurora
15 - Aurora

@alt_tush,

 

Please see below:

 

messi007_0-1613030111063.png

 

Attached the workflow

 

Regards,

AngelosPachis
16 - Nebula

Hi @alt_tush ,

 

Another way to do it apart from the one suggested by @messi007  is to use the formula 

 

DatetimeMonth(DateTimeParse([Month],"%B"))

 

The DatetimeParse([Month],"%B") is going to convert Jan, Feb, Mar to a date correctly formatted (yyyy-mm-dd) and the datetimemonth function will return you a numeric value for that month

 

AngelosPachis_0-1613033567914.png

 

Regards,

 

Angelos

 

Labels
Top Solution Authors