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

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