Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

i have date in MM-YYYY format , i need to sort records based on Year in ascending order.

yogeshrajamani
6 - Meteoroid

i need to have sort as below

 

01-2016

02-2016

03-2016

01-2017

02-2017

03-2017

01-2018

02-2018

03-2018

 

3 REPLIES 3
MarqueeCrew
20 - Arcturus
20 - Arcturus

How about a formula for SORT_DATE

 

RIGHT([date],4) + "-" + left([date],2)

 

 that should sort well. 

cheers,

 

 mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Qiu
21 - Polaris
21 - Polaris

@yogeshrajamani 
Lets just convert it to Date.

CaptureA11.PNG

grazitti_sapna
17 - Castor

Hi @yogeshrajamani,

 

Here is my take on this problem.

 

grazitti_sapna_0-1614231333808.png

 

I hope it helps.

Sapna Gupta
Labels