Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Transpose Data dynamically

Shank
8 - Asteroid

Hi All,

 

I am new to Alteryx. 

 

i need to transpose a data data based below requirement.

 

In below input table we have vendor name in 1st column and number of products vendor has delivered in 2nd column, respectively we have all the products delivery date and type of product delivered details in rest of the columns. i need an output as mention below in output table . Also, the challenging part here is even though Vendor A has 4 product to deliver he agreed to deliver only 3 products (you can see delivered date and product type filled only for 3 products) and we need show only three lines. if it has 4th product date and time then that should be printed again in new row. (0r else if i get fourth row with blank data that is also fine for me in this case.)

 

Dynamically if vendor has 5 products to deliver then product delivery date and type should be printed in 5 rows.

 

also, Vendor E has 0 products but i just need that line printed.

 

Input

 

VendorProducts DeliveredProduct 1 Delivery DateProduct Type 1Product 2 Delivery DateProduct Type 2Product 3 Delivery DateProduct Type 3Product 4 Delivery DateProduct Type 4
A47/11/2018Cloth7/11/2018Bag7/11/2018Bag  
B37/11/2018Bag7/11/2018Paper7/11/2018Paper  
C27/11/2018Paper      
D17/11/2018Box      
E0        

 

Output

 

VendorProducts DeliveredDateType
A47/11/2018Cloth
A47/11/2018Cloth
A47/11/2018Cloth
B37/11/2018Bag
B37/11/2018Paper
B37/11/2018Paper
C27/11/2018Paper
D17/11/2018Box
E0  

 

Many Thanks for your help.

 

Regards,

Shashank

2 REPLIES 2
NicoleJohnson
ACE Emeritus
ACE Emeritus

See attached! You can do this fairly straightforward by utilising the Transpose & Cross-Tab tools... by Transposing all the column names in one field with their values in the next, and then a little data prep to determine the delivery number 1, 2, 3, 4 etc. and standardize the column names, you can Cross-Tab the data so that you have your delivery dates & product types next to each other with a record for each delivery. 

 

TransposeData.JPGTranspose and Cross-Tab are super-powerful tool if you get the hang of them - check out some of the help menu info and Tool Mastery articles for more information on configuration/etc.! Hope this helps!

 

Cheers,

NJ

Shank
8 - Asteroid
Thank you...
Labels