Calling all Alteryx customers: Refer your colleague to try Alteryx and receive a $50 gift card. Sign up now!

Alteryx Designer Desktop Discussions

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

new row for every column having a value

Swati_Kejriwal
5 - Atom

Hi All, I am trying to perform transpose where i want a row for each record id where there is a value populated in any on of the columns against this records.

 

Sample Data:

record idrecord typerecord categorycolumn 1column 2column 3column 4
R1RTARC1C1C2  
R2RTARC1 C2C3C4
R3RTBRC5  C3 

 

Required Output:

record idrecord typerecord categorycolumn 1
R1RTARC1C1
R1RTARC1C2
R2RTARC1C2
R2RTARC1C3
R2RTARC1C4
R3RTBRC5C3
2 REPLIES 2
apathetichell
19 - Altair

transpose tool:

record id, record type and record category are key columns.

filter tool:

!isempty([value])

select tool:

rename [name] column 1

atcodedog05
22 - Nova
22 - Nova

Hi @Swati_Kejriwal 

 

Here is how you can do it.

 

Workflow:

atcodedog05_0-1626283354063.png

1. Using transpose converting columns to rows.

2. Using data cleanse tool to clean values column.

3. Filtering of empty values.

4. Using filter tool to keep only required columns.

 

Hope this helps : )

Labels
Top Solution Authors