We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Sort Dynamic fileds alphabetically in a analytical APP

sanchit
7 - Meteor

Hi Everyone,

 

I have some columns named catergory, property1,property2, umbrella1,umbrella 2. and property and umbrella header names keep changing based on year,

I run this for every year taking year as a input from interface tool, I used select tool and try to sort by alphabets it works fine for only one year and remaining years it gets messed up 

 

like Eg- Categorty then property 1 , umbrella 1, property2,property3,propert4,umbrella 2,umbrella3 and so on.

what i need :

I just want them to be together Eg- Categorty then property 1,2,3,4,5 and umbrella 1,2,3,4,5

 

6 REPLIES 6
binuacs
21 - Polaris

@sanchit Can you provide sample input data and expected output?

sanchit
7 - Meteor

please find the attached files

sanchit
7 - Meteor
SPetrie
13 - Pulsar

There is a field sort in the CReW macro pack.

It would do what you are wanting.

SPetrie_0-1650911782038.png

SPetrie_1-1650911808374.png

 

 

binuacs
21 - Polaris

@sanchit Another way of doing this by Transposing the values , sort and cross tab

 

binuacs_0-1650922980675.png

 

sanchit
7 - Meteor

Thank you for this, even if you dont want to use a macro from crew you can just copy the tools used in them and this is effective if you have dynamic fields whose names keeps changing as well.

Labels
Top Solution Authors