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

Extracting Date and Sort Correctly

KamenRider
11 - Bolide

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
binu_acs
21 - Polaris

@KamenRider One way of doing this

image.png

binu_acs
21 - Polaris

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

KamenRider
11 - Bolide

Hi @binu_acs 

 

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

binu_acs
21 - Polaris

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

Labels
Top Solution Authors