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 Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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

ToNumber(substring....

ohruud
7 - Meteor

Hi there, 

 

I have a data-set containing months as a string function (Jan, Feb, Mar etc), but not in the right order. One solution that I found was to give each month a number, thus enabeling to sort on nuber to get the right order. 

 

The expression used was " ToNumber(substring(DateTimeParse([month], "%b"),5,2))

 

However, I do not fully understand how the formula works.  Can someone explain ? 🙂

 

 

2 REPLIES 2
DavidP
17 - Castor
17 - Castor

If you break it up into individual parts, it's easier to understand the formula, see below:

 

DavidP_0-1587722978264.png

 

ohruud
7 - Meteor

Thanks 🙂

Labels
Top Solution Authors