Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

Alteryx Designer Desktop Discussions

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

data structure required

Sharad_123
5 - Atom

I attach excel file that contains 2 sheets 

1 sheet is data structure available 

2 sheet is data structure required 

so I want to solution to how can I do 1st sheet to 2nd conversion into alteryx workflow  .. thank you 

sheet 1  -  data structure available 

Customer NoName Order NoOrder DateShipment DateItem NoQuantityUnitNet AmountAmountCurrency
1abc         
  O_101/09/202103/09/2021      
    03/09/2021I_12pcs100200 
    03/09/2021I_22pcs50100 
Total     4  300 
2def         
  O_201/09/202103/09/2021      
    03/09/2021I_35pcs2001000USD
    03/09/2021I_44pcs50200USD
  O_301/10/202103/10/2021      
    03/10/2021I_52pcs100200USD
Total      11  1400USD

 

 

 

sheet 2 - data structure required 

Customer NoName Order NoOrder DateShipmentDateItem NoQuantityUnitNet AmountAmountCurrency
1abcO_101/09/202103/09/2021I_12pcs100200 
1abcO_101/09/202103/09/2021I_22pcs50100 
2defO_201/09/202103/09/2021I_35pcs2001000USD
2defO_201/09/202103/09/2021I_44pcs50200USD
2defO_301/10/202103/10/2021I_52pcs100200USD
4 REPLIES 4
Maskell_Rascal
13 - Pulsar

Hi @Sharad_123 

 

Here are two different ways you can do it. 

 

Solution 1 uses a lot of Multi-Row Formula tools to fill down your data before filtering to the final results. While this solution will work, its a little messy and not very dynamic should you need to add additional fields. 

Maskell_Rascal_0-1631216547365.png

 

Solution 2 first transposes only the fields that need to be filled down. It then will sort the data, use a Multi-Row Formula tool grouped by the column names to fill down all fields at the same time, and the crosstab the data back. From there it joins back to the original data by RecordID and filters to the final results. 

Maskell_Rascal_1-1631216708331.png

 

If this solves the problem please mark answer as correct, if not let me know!

 

Cheers!

Phil

Sharad_123
5 - Atom

Hi 

in both workflows you did text input tool  ..that time workflow going well .. but the same when I do input data tool using my attached excel file that time getting error. if possible look ones again..thank you.

Sharad_123_0-1631262622731.png

 and in 2nd solution workflow going well but when browsing data that time name column showing empty ..using input data tool.. so please guide for using input data tool for this .. thank you once again.

Sharad_123_1-1631262777284.png

 

Maskell_Rascal
13 - Pulsar

Hi @Sharad_123 

 

Both solutions are failing b/c I renamed the field [Name ] to [Name]. You for some reason have a trailing whitespace in your field name.

 

You can update solution 1 by correcting the formula and adding the space.

Maskell_Rascal_0-1631282359736.png

 

For solution 2, click on the Transpose tool and select the field that is missing from the Data Columns selection. 

Maskell_Rascal_1-1631282384378.png

 

Thanks!

Phil

Sharad_123
5 - Atom

thank you so much for guidance..

 

Labels