Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Ordering columns dynamically in analaytic app

wonka1234
10 - Fireball

Hi,

 

Is there a way to use the select tool to order columns?

 

Ie I have columns like

 

First Name202201Last Name202202202203

 

but want to make it

 

First NameLast Name202201202202202203

 

 

the issue is - i dont know which date columns will exist. It could be 202201 only, could be 202201-202212, could be aanything.

1 REPLY 1
kboeckholt
7 - Meteor

@wonka1234 I've never had much luck doing it dynamically with the select tool.

 

My solution in the past (when I want a set of the fields to be sorted alphabetically) is to use a Transpose and Cross Tab to take advantage of the fact that the Cross Tab tool will column headers alphabetically (I've had mixed results when AMP is enabled). 

 

kboeckholt_0-1677254560784.png

 

Input:

kboeckholt_1-1677254598416.png

Transpose:

kboeckholt_3-1677254656473.png

Cross Tab:

kboeckholt_4-1677254672603.png

Output:

kboeckholt_5-1677254696480.png

 

 

Labels
Top Solution Authors