Alteryx Designer Desktop Discussions

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

Create new rows

jaiiracha
7 - Meteor

Hi - In the following dataset, I would like to create new rows, If the same employee (Employee ID) has multiple tasks fields filled out in the same row. So for example, for the first row, I'd like to create a new row with the same Employee ID, First Name and Last Name with the Date 2 and Task 2 values populated under the Date 1 and Task 1 columns.

 

Employee IDFirst NameLast NameDate 1Task 1Date 2Task 2Date 3Task 3
85426JohnSmith1/1/2023Dummy11/5/2023Dummy2  
85426JohnSmith1/1/2023Dummy2  1/7/2023Dummy2
85426JohnSmith1/1/2023Dummy31/5/2023Dummy2  
85426JohnSmith1/1/2023Dummy11/5/2023Dummy21/8/2023Dummy3

 

Example: 

Source:

Employee IDFirst NameLast NameDate 1Task 1Date 2Task 2Date 3Task 3
85426JohnSmith1/1/2023Dummy11/5/2023Dummy2  

 

Target:

Employee IDFirst NameLast NameDate 1Task 1Date 2Task 2Date 3Task 3
85426JohnSmith1/1/2023Dummy1    
85426JohnSmith1/5/2023Dummy2    

 

 

Thank you! Appreciate the help!!

 

 

2 REPLIES 2
Felipe_Ribeir0
16 - Nebula

Hi @jaiiracha 

 

See if this is it:

sample.png

jrgo
14 - Magnetar

@jaiiracha 

 

Doesn't match the table layout of the "Target" in your example, but I think is directionally what you're looking for. 

image.png

Labels