Free Trial

Alteryx Designer Desktop Discussions

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

Cross tab - The most basic question in the world

DKMI
7 - Meteor

I am not finding cross tab intuitive, and wonder if someone can help.

 

I have a dataset like this:

 

Field nameResult
NamePeter
Age56
shoesize10
  
NameSusan
Age15
shoesize9
  
NameJames
shoesize10
  
NamePetra
Age56
shoesize8

 

I want it to look like this:

 

NameAgeshoe size
Peter5610
Susan15 
James7510
Petra568

 

No matter what combination I select in the cross tab tool, I cant seem to do this :(

4 REPLIES 4
ShankerV
17 - Castor

Hi @DKMI 

 

To achieve the below, you need 2 steps.

 

Step 1: MultiRow formula tool.

 

Create New Field: S. No

 

IF [Field name] = "Name"
THEN [Row-1:S No]+1
ELSE [Row-1:S No]
ENDIF

 

Step 2: Crosstab tool.

 

Group data by these values: S.No 

Change Column Headers: Field name

Values for New Columns: Result

 

Many thanks

Shanker V

DataNath
17 - Castor
17 - Castor

Hey @DKMI, you need a couple of additional steps here. First, I have just filtered out the empty rows, assigned an index to each person every time we see 'Name' and then used this to Group By in the Cross-Tab. Hope this helps!

flying008
15 - Aurora

Hi, @DKMI 

 

FYI.

 

录制_2023_08_10_16_24_59_792.gif

grazitti_sapna
17 - Castor

Hi @DKMI 
I Have made workflow for your use case .Hope it works for you.
Thanks

Sapna Gupta
Labels
Top Solution Authors