Free Trial

Alteryx Designer Desktop Discussions

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

Appending Row to Related Reference in Column

Kristopher_Siple
5 - Atom

Hi There,

 

A bit inexperienced with the Append tool and am attempting to create a new column which has the associated comment in the same row. The data as it currently structured is:

 

ReferenceDisclosureSectionCurrent Response
A1.1.1The name of company or fundGeneralYes
CommentSee financial statement  
A1.1.2A description of each statementGeneralYes
CommentSee basis of presentation  

 

Ideally, the output would be structured as:

 

ReferenceDisclosureSectionCurrent ResponseComment
A1.1.1The name of company or fundGeneralYesSee financial statement
A1.1.2A description of each statementGeneralYesSee basis of presentation

 

My workflow is currently filtering out the rows which contain "Comment", but I am having an issue appending it to the related Reference row. Any insight is greatly appreciated!

 

Thank You,

Kris Witha

7 REPLIES 7
mceleavey
17 - Castor
17 - Castor

Hi @Kristopher_Siple ,

 

assuming your data is representative of the live data, the following will work:

 

mceleavey_0-1636644679198.png

 

This splits out the comment rows and joins them back on record position.

 

mceleavey_1-1636644714803.png

 

Hope this helps,

 

M.

 



Bulien

Kristopher_Siple
5 - Atom

Also meant to upload the current workflow & input file

Kristopher_Siple
5 - Atom

Thanks for the recommendation @mceleavey

I provided a poor example of the data as not every row is in a similar format with a comment directly following each. I have a similar setup to your recommendation, but the data isn't as clean as my initial post represents

 

I uploaded the full data set to provide additional detail.

mceleavey
17 - Castor
17 - Castor

@Kristopher_Siple ,

 

try the attached.

I changed the ending but used a similar approach.

 

M.



Bulien

mceleavey
17 - Castor
17 - Castor

Sorry, wrong version.

New one attached.



Bulien

Kristopher_Siple
5 - Atom

That looks great, @mceleavey (not sure I can directly mention due to my ranking).

 

Greatly appreciate the help! Have an awesome day.

 

Kris

mceleavey
17 - Castor
17 - Castor

no problem.gif



Bulien

Labels
Top Solution Authors