Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Reshape Repeating Columns into Rows

mikedess
5 - Atom

Struggling to determine an efficient means of dynamically combining repeating Columns into Rows when all is unknown. Known variables are company name in row 1, Field headers in Row 2. There can be extra blank columns between each company data section, rows/amount of data can vary, number of company sections can vary. See attached for sample data. Desired output is below with full output on second tab of attached excel

 

 

 
CompanyDate Amount 
Company 11/2/2019  (1,000,000.00)
Company 110/17/2020                 771.52
Company 16/6/2022             4,412.49
Company 19/5/2022           (9,687.62)
Company 111/8/2022           (7,301.59)
Company 15/27/2023             5,569.53
Company 25/6/2011  (1,000,000.00)
Company 22/18/2013        (88,000.00)
Company 210/8/2014      (150,000.00)
Company 21/7/2015             6,045.35
Company 23/12/2015             7,554.44
Company 29/28/2015                 (98.68)
Company 24/15/2016             1,333.91
Company 211/1/2016           (2,028.56)
Company 21/31/2017             2,883.57
Company 211/16/2018             6,153.43
Company 26/4/2019           (1,003.81)
Company 212/21/2019           (9,312.90)
Company 27/8/2020             8,265.36
Company 21/24/2021           (5,629.87)
2 REPLIES 2

Hi @mikedess 

Does the attached look like an acceptable solution?

 
 

 

 

 

Qiu
21 - Polaris
21 - Polaris

@christine_assaad 
I feel what is he need is reversed process of your flow.😁

@mikedess 
If my understanding is correct, I would try with an iterative macro to "Join" the Repeating Columns horizontally as below.

Have to say, dealing with unstructured data is not really the strong suit of Alteryx.

0508-mikedess-A.png0508-mikedess-B.png

Labels
Top Solution Authors