Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Data Transformation: Pasting 1st line values in next lines till Null line hit.

the_amvy
5 - Atom
ABCDE
1)234345643
2)2353465432
NULLNULLNULLNULLNULL
ABCDE
FNULLNULLNULLNULL

1)

548743256
2)56234234865
3)8745523390
NULLNULLNULLNULLNULL

 

Above table should be transformed into below one.

 

1)234345643ABCDE
2)2353465432ABCDE
1)548743256ABCDE  (F next cell)
2)56234234865ABCDE  (F next cell)
3)8745523390ABCDE  (F next cell)

 

I was thinking Multi field formula tool can be useful here.

Can this type of transformation is possible or we have to do this manually. 

4 REPLIES 4
gawa
16 - Nebula
16 - Nebula

hi @the_amvy 

 

For example, attached workflow works well to transpose data as you wish. I'm not sure this is robust way to handle your real data, but could help you somewhat, I guess.

image.png

flying008
15 - Aurora

Hi, @the_amvy 

 

My solution like @gawa , 

 

录制_2023_11_06_13_37_50_855.gif

 

Input           
Col1Col2Col3Col4Col5       
ABCDE       
1)234345643       
2)2353465432       
            
ABCDE       
F           
1)548743256       
2)56234234865       
3)8745523390       
            
ABCDE       
FG          
1)31415161       
2)32425262       
3)33435363       
            
            
Output           
IDCol1Col2Col3Col4Match1Match2Match3Match4Match5Match6Match7
1)234345643ABCDE  
2)2353465432ABCDE  
1)548743256ABCDEF 
2)56234234865ABCDEF 
3)8745523390ABCDEF 
1)31415161ABCDEFG
2)32425262ABCDEFG
3)33435363ABCDEFG
the_amvy
5 - Atom

Hi @gawa, thanks a lot for your solution. It helped a lot !!

the_amvy
5 - Atom

Hi @flying008,  Thanks for providing the workflow. I transformed the data using only multi field and multi row formula tools, but this is very easy and short. Will use this next time.

Labels
Top Solution Authors