Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Sort header-row after cross tabbing

dottman
7 - Meteor

Hello - I'm struglling to get these headers sorted geographically, Northeast = 1, Mid Atlantic = 2, Southeast = 3, Great Lakes = 4, Central = 5, Northwest = 6, West = 7 and total = 8.

I wrote a formula similar to the above and tried to sort before cross-tabbing but it automatically sorted alphabetically. Any help would be appreciated!

 

sort.PNG

2 REPLIES 2
alexnajm
18 - Pollux
18 - Pollux

Before you Crosstab, I would add the 1, 2, 3, etc. to the beginning of the region - i.e. 1_Northeast, 2_MidAtlantic, etc.

 

That way, they should show in the correct order after the Crosstab. Then you can remove the numbers with a Dynamic Rename tool after the Crosstab! Likely a RegEx replace - I can try to help further if you send your workflow and a sample of the data 

binuacs
21 - Polaris

@dottman one way of doing this

image.png

Labels
Top Solution Authors