Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Need help cross-tabbing half of the table

AkisM
10 - Fireball

My table looks like this:

 

NameDateTypeValue
John2019-12-01Height1.7
John2019-12-01Weight71
John2019-12-01Age23
John2019-12-01SexM
John2020-01-01Height1.7
John2020-01-01Weight71.3
John2020-01-01Age23
John2020-01-01SexM
    

 

and continues with those 2 variables for each person, which can span across multiple months. Instead, I would like to change this table to change rows only where the name or the month changes, and bring the biometric data in as columns instead. So the above should become

 

NameDateHeightWeightAgeSex
John2019-12-011.77123M
John2020-01-011.771.523M
John2020-02-01etcetcetcetc
Bobetcetcetcetcetc

 

There isn't always a fixed amount of different months for each person, what matters is the biometric data to change to columns, and rows to be grouped by name + month.

 

Any ideas would be appreciated

1 REPLY 1
AkisM
10 - Fireball

Got it, just needed a cross tab tool selecting name and date as "group by values" then change column headers set to "type" and values for new columns set to "value"

Labels