Alteryx Designer Desktop Discussions

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

Cross tab for different date month year into a specific format

Haokun
8 - Asteroid

hi all,

 

i have a data set looks like below, this is only 4 month period so in the end there will be 24 month data.

StatusCountEnd Date (Updated)
Pending Action201_Apr_2020
Pending Action7101_Apr_2021
Pending Action108_Apr_2020
Pending Action6808_Apr_2021
Pending Action115_Apr_2020
Pending Action5415_Apr_2021
Pending Action8822_Apr_2021
Pending Action6229_Apr_2021
Pending Receipt101_Apr_2020
Pending Receipt5101_Apr_2021
Pending Receipt5208_Apr_2021
Pending Receipt5615_Apr_2021
Pending Receipt6422_Apr_2021
Pending Receipt5129_Apr_2021
Rejected301_Apr_2020
Rejected2601_Apr_2021
Rejected3308_Apr_2021
Rejected3115_Apr_2021
Rejected222_Apr_2020
Rejected4222_Apr_2021
Rejected229_Apr_2020
Rejected2929_Apr_2021
Pending Action1904_Feb_2020
Pending Action7504_Feb_2021
Pending Action1118_Feb_2020
Pending Action5018_Feb_2021
Pending Action1125_Feb_2020
Pending Action5725_Feb_2021
Pending Receipt1404_Feb_2020
Pending Receipt8704_Feb_2021
Pending Receipt1118_Feb_2020
Pending Receipt10318_Feb_2021
Pending Receipt1125_Feb_2020
Pending Receipt6325_Feb_2021
Rejected704_Feb_2020
Rejected3404_Feb_2021
Rejected918_Feb_2020
Rejected4218_Feb_2021
Rejected625_Feb_2020
Rejected1625_Feb_2021

 so after using cross tab tool, is it possible to have something looks like below? thanks so much guys

Status04_Feb_202004_Feb_202118_Feb_202018_Feb_202125_Feb_202025_Feb_202101_Apr_202001_Apr_202108_Apr_202008_Apr_202115_Apr_202015_Apr_202122_Apr_202022_Apr_202129_Apr_202029_Apr_2021
Pending Action197511501157271168154 88 62
Pending Receipt1487111031163151 52 56 64 51
Rejected734942616326 33 31242229
7 REPLIES 7
AkimasaKajitani
17 - Castor
17 - Castor

Hi @Haokun ,

 

You can use CrossTab Tool to achieve what you want.

 

AkimasaKajitani_1-1623990188718.png

 

 

AkimasaKajitani_0-1623990045939.png

 

ArtApa
Alteryx
Alteryx

Hi @Haokun - The solution posted by Akimasa will sort columns in alphabetical order. Let us know, if you want to sort them differently, e.g. chronological order.

AkimasaKajitani
17 - Castor
17 - Castor

Hi @Haokun @ArtApa 

 

I made a new workflow that sorted chronologically.

AkimasaKajitani_0-1623993608264.png

 

I change the type of date and pivot and then rewrite the field names by dynamic rename tool.

Haokun
8 - Asteroid

@AkimasaKajitani @ArtApa 

that is not I am looking for...i don't want to have chronological order, i want to follow the output structure, so that it is able to compare year 2020 and year 2021 for different month. So the date and month will be in chronological order, not the year.

Qiu
20 - Arcturus
20 - Arcturus

@Haokun 
Inspired by @AkimasaKajitani 

Capture1A.PNG

Haokun
8 - Asteroid

@Qiu it works man....thanks again for your help! 

Qiu
20 - Arcturus
20 - Arcturus

@Haokun 

Glad to help and thank you for the accept mark.

Labels