Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Data transformation - Inserting a new row

RajatRehria
8 - Asteroid

Hi guys,

 

I have a data like below with multiple columns showing only single column), i want to insert a row below the red highlighted line and paste whatever in the above red highlighted row in the new inserted row (refer desired Output below). Kindly help if possible. Thanks

Assets
Investments at fair value (cost of $9,252,145) 
Compliance cash
Cash and cash equivalents
Liabilities and partners' capital
Liabilities:
Accounts payable
Withholding taxes payable
Payable to affiliate
Partners' capital:
net capital contributions 

 

Required Output

Assets
Investments at fair value (cost of $9,252,145) 
Investments at fair value (cost of $9,252,145) 
Compliance cash
Cash and cash equivalents
Liabilities and partners' capital
Liabilities:
Accounts payable
Withholding taxes payable
Payable to affiliate
Partners' capital:
net capital contributions 
3 REPLIES 3
Prometheus
12 - Quasar

@RajatRehria I used the Sample tool twice to take only the first row, then unioned them and the rest of the data after I used a Sample tool to skip the first row. If the value you want to duplicate is always going to be in the first row, you can use this method.

Sample 1st.PNG

Skip 1st.PNG

Assets output.PNG

caltang
17 - Castor
17 - Castor

I don't know the full nature of your request, but for your use case here, you can do something like this:

image.png

 

The concept is to get it sorted, then you can union them according to your preferred arrangement. 

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
RajatRehria
8 - Asteroid

Many thanks @caltang and @Prometheus for the solution

Labels