Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Organizing Table with many nulls and unnecessary rows

Csam
6 - Meteoroid

Good morning,

 

I have a large table with many columns which all contain the same type of row info but with different values. Currently there's a lot of nulls which makes my table much larger than it needs to be. Here's an example of what I mean:

 

COLOURSHIRT QUANTITYPANTS QUANTITYSHOES QUANTITY
RED43NULLNULL
BLUE54NULLNULL
REDNULL23NULL
BLUENULL45NULL
REDNULLNULL65
BLUENULLNULL34

 

When I would like it to be:

 

COLOURSHIRT QUANTITYPANTS QUANTITYSHOES QUANTITY
RED432365
BLUE544534

 

Is there a way to easily transform the first table into the second in Alteryx?

 

Thank you!

1 REPLY 1
Thableaus
17 - Castor
17 - Castor

Hi @Csam 

 

There's a little trick using Transpose Tool and the Cross-Tab tool that can help you do that.

 

organizerename.PNG

 

 

- Transpose your columns grouping by Colour field

- Filter the Null Values 

- Use Cross-Tab tool to go back to your dataset

 

You might need to rename and sort the columns, but I think this works pretty well.

 

WF attached.


Cheers,

Labels
Top Solution Authors