Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

Alteryx Designer Desktop Discussions

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

Cross Tab

cowannbell
9 - Comet

I have a table that I'm pulling in and it has only two fields.  Pin and Language.  There can be multiple rows for each pin because they may have multiple languages.

 

What I need is to transform and have 1 row for each PIN and then columns for their languages.

 

How can I use the Cross Tab tool to do this because I can't seem to get it to work?

 

 

4 REPLIES 4
AngelosPachis
16 - Nebula

Hi @cowannbell ,

 

I have created a new field that acts as a flag, before using a cross-tab tool to bring the table in the format that you would like.

 

AngelosPachis_0-1613507622461.png

 

"y" stands for yes, so everything else is no, so that langiage is not contained in that pin group.

 

Let me know if that worked for you

 

Cheers,

 

Angelos

vizAlter
12 - Quasar

Hi @cowannbell  — Try this solution:

 

Here, I have included an example of duplicates row (PinCodes and Languages), then presented in the sorted output:

vizAlter_0-1613508203946.png

 

grazitti_sapna
17 - Castor

Hi @cowannbell , Another way to approach the solution.

grazitti_sapna_0-1613541455201.png

 

If this is what you are looking for kindly mark this post as solution.

Thanks.

Sapna Gupta
cowannbell
9 - Comet

Thank you all so much.  Sapna's solutions worked best for my needs.

Labels