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

Alteryx Designer Desktop Discussions

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

Divide Column Data into 2 or more columns

hemant86
11 - Bolide

Hi All,

 

I have data as shown in the screenshot below. Now my Requirement is to segregate the End Date2 column data into two different columns. Is that possible. Please see the screenshot for the required output. Note: Not all employee Ids will be having 2 End dates

 

INPUT data

hemant86_0-1632223251655.png 

 

Required Output                  

EMPCODEDOJDOLEnd Date1End Date2
1007160326/15/20169/19/2021[Null][Null]
10598844912/18/20199/19/20219/17/202110/17/2021
1060267731/6/20209/19/20219/5/202110/5/2021
1061432032/17/20209/19/20219/16/202110/16/2021
1061479705/25/20209/19/20219/24/2021[Null]

 

Thanks in advance!

13 REPLIES 13
atcodedog05
22 - Nova
22 - Nova

Hi @hemant86 

 

Please provide input data in excel file.

pdave87
11 - Bolide

Hi,

 

Good question, I believe data transform can address this requirement. Can I request the sample input data?

 

Regards,

Pratik

pdave87
11 - Bolide

@hemant86 Hope below works alright in your use case. Let me know your thoughts 🙂

 

1.

pdave87_0-1632224646320.png

 

2. 

pdave87_1-1632224680301.png

 

 

hemant86
11 - Bolide

 Hi @atcodedog05 

 

Attaching the sample data in excel.

Christina_H
14 - Magnetar

Here's my version

Christina_Hurrell_0-1632224895458.png

 

hemant86
11 - Bolide

Thanks for your response @pdave87 . attaching the input sample 

pdave87
11 - Bolide

@hemant86 Here we go 🙂

 

pdave87_0-1632225076054.png

 

pdave87
11 - Bolide

@hemant86 Transpose to create extra column and cross tab to parse the date into two - method of aggregation is "First" and "Last" both selected (not shown in screen-print), have a good day! 🙂

atcodedog05
22 - Nova
22 - Nova

Hi @hemant86 

 

My take on it.

 

Workflow:

atcodedog05_0-1632225330538.png

 

Hope this helps : )

Labels
Top Solution Authors