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

Need help Pivoting a dynamic amount of data

BJS13
6 - Meteoroid

Hi,

 

I'm having trouble using the cross tab for 2 rows of data where not all groups have the same amount of data. Any help is appreciated.

 

Capture.PNG 

2 REPLIES 2
jdunkerley79
ACE Emeritus
ACE Emeritus

I suggest the following:

2018-12-04_21-30-31.png

 

- Use a multi row formula to create a ranking in groups

- Use two cross tabs using the ranking as a field name - one for CandyID, one for CandyName

- Use dynamic renames to sort names out

- Use a join to put it back together

DavidxL
9 - Comet

See the attached workflow for an example. It should work with any size of data, but the final order of columns will have to be manual at the moment. I'm sure it could be extended to automatically reorder the columns as well.

Labels
Top Solution Authors