Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Transpose? Cross Tab? Not sure.

bsolove123
6 - Meteoroid

I want to transform my data so that each instance of effective data is in a new field. I've attached test data below.

 

Start:

Rule TypeJurisdiction TypeStateDate RuleEffective Date
DefaultStateKansasBeginning01/01/2021
DefaultStateKansasBeginning01/01/2020
DefaultStateAlaskaBeginning01/01/2020
DefaultStateAlabamaBeginning01/01/2021
DefaultStateAlabamaBeginning01/01/2020

 

End: 

Rule TypeJurisdiction TypeStateDate RuleEffective Date 1Effective Date 2
DefaultStateKansasBeginning01/01/202001/01/2021
DefaultStateAlaskaBeginning01/01/2020 
DefaultStateAlabamaBeginning01/01/202001/01/2021

 

4 REPLIES 4
binuacs
21 - Polaris

@bsolove123 This can be achieved using the summarize tool. please see the workflow below 

binuacs_0-1649367688268.png

 

Qiu
21 - Polaris
21 - Polaris

@bsolove123 
I usually consider this, use Cross Tab for vertical to horizontal, Transpose for Horizontal to Vertical.

0408-bsolove123.PNG

JarekSkudrzyk
11 - Bolide

@bsolove123 @Qiu 

just added sort tool to @Qiu 's solution to show earlier dates first (will work ok in this case and other cases where the date is in Date format)

binuacs
21 - Polaris

@bsolove123  I thought of add another way of doing this - using Multi-Row formula

 

binuacs_0-1649409440431.png

 

Labels