Announcement | We'll be doing maintenance between 2-3 hours, which may impact your experience. Thanks for your patience as we work on improving the community!

Alteryx Designer Desktop Discussions

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

Collating Diagonally arranged output of Batch Macro into Tabular format

Tej_Singh
8 - Asteroid

Hi All,

 

My batch macro after reading 4 files (with common rows (A,B,C,D) and different column name (2/1/2021, 2/2/2021, ...)) is outputting data diagonally as shown in worksheet "Data" in the attached shared excel file.

 

Name2/1/20212/2/20212/3/20212/4/2021
A1   
B2   
C3   
A 4  
B 5  
C 6  
D 7  
A  8 
B  9 
C  10 
A   11
B   12
C   13

 

I want to collate them into a single table as shown in worksheet "Desired Output" in the attached shared excel file.

 

Name2/1/20212/2/20212/3/20212/4/2021
A14811
B25912
C361013
D 7  

 

Can anyone suggest a best way to that??? 

3 REPLIES 3
Emil_Kos
17 - Castor
17 - Castor

Hi @Tej_Singh,

 

I took the data set from the post and created output for your:

 

Emil_Kos_0-1612335560672.png

Summarize tool works excellent here:

 

Emil_Kos_1-1612335576602.png

 

 

 

Tej_Singh
8 - Asteroid

Thanks @

 

That was really quick. This really worked if the column names are the same. 🙂

 

I have another situation. I am running batch macro at the end of every month. Hence; if I have a situation where my column names in the next month output changes from 2/1/2021 to 3/1/2021,  2/2/2021 to 3/2/2021,   2/3/2021 to 3/3/2021,  2/4/2021 to 3/4/2021 then I guess summarize won't work.

 

Any suggestions how to deal with this situation?

Tej_Singh
8 - Asteroid

Thank You @Emil_Kos . It works as accepted. 🙂

Labels