Free Trial

Alteryx Designer Desktop Discussions

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

Cross Tab data transformation

Rajat_Rehria
7 - Meteor

Hi Community,

 

I want to Pivot the data like below please help me getting the desired results, i tried using Cross Tab but unable get the results.

 

I am also getting the below aggregating options which i am not sure why not working as required

Concatenate

First

Last

 

Input:

CategoriesAccounts
H145
B125
H6621
D112
B5400
F5440
D1223
H221

 

Output:

HBDF
1451251125440
662154001223 
221   
3 REPLIES 3
JosephSerpis
17 - Castor
17 - Castor

Hi @Rajat_Rehria you would need to rank your data based on the Categories in order to keep them as seperate rows. I've mocked up an approach which showcases one way to tackle this.

 

Screenshot 2024-09-30 161057.png

 

apathetichell
19 - Altair

tile tool - unique value - categories.

use tile sequence number as a primary key in your cross tab. use concatenate.

acotta17
7 - Meteor

Hi @Rajat_Rehria,

 

You will get your desired output by using the two tools mentioned in the steps below: 

 

1. Use the Tile Tool and select Unique value in the method drop-down while selecting the first column as unique value. 

 

2. Use the Cross-tab Tool and select the Tile_SequenceNum in the Group by while selecting the first column as headers and second column as values.

(Optional: You can use the Sort Tool on the Tile_SequenceNum column and use the select tool to then deselect the column from the output)

 

[Screenshot for the two steps and output attached below]

 

Hope this helps :)

 

Screenshot_2024-09-30-23-41-21-57_40deb401b9ffe8e1df2f1cc5ba480b12.jpg

Screenshot_2024-09-30-23-41-43-86_40deb401b9ffe8e1df2f1cc5ba480b12.jpg

Output:

Screenshot_2024-09-30-23-52-01-14_40deb401b9ffe8e1df2f1cc5ba480b12.jpg

Labels
Top Solution Authors