In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Help on Transpose / Crosstab

NJAlteryx
5 - Atom

Hi,

 

I am new to Alteryx and I am trying to use transpose / Crosstab.

 

Below is my original data set:

Subject IDTitle CodeTitle
5616556165100Physics
5616556165200Physics Advance
6574665746100Mathematics
4646846468100Biology
4646846468200Biology Foundation
4646846468300Biology Advance
7688476884100Chemistry

 

 

I will like my data to look like this after:

Subject IDTitle CodeTitleTitle CodeTitleTitle CodeTitle
5616556165100Physics56165200Physics Advance  
65746 65746100Mathematics    
4646846468100Biology46468200Biology Foundation46468300Biology Advance
7688476884100Chemistry    

 

Can you please help me with the workflow 

 

Thanks in Advance,

nadia 

6 REPLIES 6
alexnajm
19 - Altair
19 - Altair

This should work! Note you cannot have columns of the same name in Alteryx (and any other platform besides Excel)

abacon
13 - Pulsar

@NJAlteryx Here is a way to do it.

 

The names will have to be slightly different due to Alteryx naming rules, but using the cross tab, some data prep, and then a transpose, you can get the output you are needing.

 

Bacon

 

image.png

alexnajm
19 - Altair
19 - Altair

Great minds think alike @abacon !

abacon
13 - Pulsar

@alexnajm Yours is just a little quicker though.😂

 

Bacon

jrlindem
12 - Quasar

Well alright @alexnajm  and @abacon

Can't beat your speed and nothing more to add!  hahaha, nice work.

jrlindem
12 - Quasar

Nope, sorry, I lied... I do have one change I would recommend for those that are on versions older than 2024:

 

I started with @alexnajm's file but swapped out the Record ID tool for a Multi-Row-Formula (because the old Record ID tool does not have Group by) so that I could group the Title's to avoid this:

 

jrlindem_0-1762885078771.png

 

and instead, get this:

 

jrlindem_1-1762885096231.png

 

But like the others pointed out, you will have to add a unique identifier to the column names since they can't be shared.  Hope this helps, -Jay

 

 

 

Labels
Top Solution Authors