Alteryx Designer Desktop Discussions

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

How to rearrange data

air0storm
7 - Meteor

Hi community,

 

I can't quite figure out what should be a relatively simple transformation. My data is structured like this.

 

GroupPerson
1A
2B
3C
4D
1E
4F
3G

 

I want the output to be

 

1234
ABCD
E GF

 

I thought about cross-tabbing using a concatenate function and then doing "text to rows". But in practice there are a lot of groups, not just 4, so I was hoping there was a more practical solution.

 

Thanks!

3 REPLIES 3
AngelosPachis
16 - Nebula

Hi @air0storm 

 

First of all, that's one great username. Secondly, I've mocked up a workflow that answers your question, you just have to create a field that you will group on, before you cross-tab

 

Workflow: 

workflow.jpg

 

Output

 

results.jpg

 

Hope that helps

 

Regards,

 

Angelos

BrandonB
Alteryx
Alteryx

You will want to use a multi row tool to make kind of like a record ID within each group. Then when you crosstab you can group by this new field and it will rearrange the data as you are looking for. Workflow is attached. 

 

 

rearrange 1.png

 

rearrange 2.png  

air0storm
7 - Meteor

Worked like a charm, thanks a lot for the help!

I couldn't quite figure out how to make that record locator.

Labels