Alteryx Designer Desktop Discussions

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

Extracting Date and Sort Correctly

KamenRider
10 - Fireball

Hi Guys,

 

I have this date in different format, string type in that when I convert and sort it, it does not sort chronologically but sorted randomly. I can't find why?  Can you help me sort this correctly? Sample date below.

 

12.31.21 SN BARates.xlsx

12.30.2022 SN BARates.xlsx

12.29.23 SN BARates.xlsx

12.21.2022 SN BARates.xlsx

12.13.23 SN BARates.xlsx

 

The format of the date should be mm/dd/yyyy. And I would like it sort from latest date to earliest.

 

Looking forward.

 

Thanks,

Kamen

4 REPLIES 4
binuacs
20 - Arcturus

@KamenRider One way of doing this

image.png

binuacs
20 - Arcturus

@KamenRider just noticed you need in a different format, updated workflow attached

KamenRider
10 - Fireball

Hi @binuacs 

 

Thanks however, I am very much confuse why my records are not sorting properly. Using formula tool coming from your workflow and then sort, it is not sorting properly. See snapshot below. Would you know why? How can this be fix?

 

sort.PNG

Kamen

binuacs
20 - Arcturus

@KamenRider Make sure the Date field is Date data type and use that field in the sort tool

Labels