Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Adding Rows When Criteria is met/Match

NicoleHou
7 - Meteor

I am trying to insert key fields where a criteria/field matches:

 

Source #1

 

BCDE
   Year To DateYear To Date
   August 2022August 2022
Account Account DescriptionC123P4 - XY Corp.C345P6 - XYZ Investment LLC 
44123TOTALAcct 112345.6622345.66
44124TOTALAcct 22345.6832345.68
44125TOTALAcct 3 564.88

1564.88

 

 

F
Year To Date
August 2022
C445P9 - BB LP
32345.66

332345.68

31564.88

 

Source # 2

IDCoAreaArea NumberCheck
C123P4 - XY Corp.123P4ColbyP4x
C345P6 - XYZ Investment LLC 345P6MooreP6y
C445P9445P9RalphP9x

 

Desired Outcome 

   xy
   123P4345P6
   P4P6
   ColbyMoore
   Year To DateYear To Date
   August 2022August 2022
Account Account DescriptionC123P4 - XY Corp.C345P6 - XYZ Investment LLC 
44123TOTALAcct 112345.6622345.66
44124TOTALAcct 22345.6832345.68
44125TOTALAcct 3 564.881564.88
x
445P9
P9
Ralph
Year To Date
August 2022
C445P9- BB LP 
32345.66
332345.68
31564.88

 

Any guidance is appreciated 

 

Thank you

 

9 REPLIES 9

@NicoleHou , can you elaborate on the logic and criteria used for matching the two datasets?

NicoleHou
7 - Meteor

My apologies, I left out information on accident.  Need to match based on row 4 in Source #1 (Columns D,E,F) and the ID column from Source #2

 

Source #1

BCDEF
   Year To DateYear To DateYear To Date
   August 2022August 2022August 2022
Account Account DescriptionC123P4 - XY Corp.C345P6 - XYZ Investment LLC C445P9 - BB LP
44123TOTALAcct 112345.6622345.6632345.66
44124TOTALAcct 22345.6832345.68332345.68
44125TOTALAcct 3 564.881564.8831564.88

 

Source #2 

IDCoAreaArea NumberCheck
C123P4 - XY Corp.123P4ColbyP4x
C345P6 - XYZ Investment LLC 345P6MooreP6y
C445P9 - BB LP445P9RalphP9x

 

Desired Output

 

   xyx
   123P4345P6445P9
   P4P6P9
   ColbyMooreRalph
   Year To DateYear To DateYear To Date
   August 2022August 2022August 2022
Account Account DescriptionC123P4 - XY Corp.C345P6 - XYZ Investment LLC C445P9 - BB LP
44123TOTALAcct 112345.6622345.6632345.66
44124TOTALAcct 22345.6832345.68332345.68
44125TOTALAcct 3 564.881564.88

31564.88

 

 

Hi!

I approached it by transposing the second part of the header, joining it with Source #2, and retransposing the result. (I wished Alteryx had a one-tool transpose option....)

See the attached workflow for the intricacies (such as renaming the fields before retransposing in order to ensure the desired order of the header)

Emmanuel_G
13 - Pulsar

@NicoleHou 

 

One way to achieve to this result.

 

Emmanuel_G_0-1664882531372.png

 

NicoleHou
7 - Meteor

Thank you!

NicoleHou
7 - Meteor

Thank you, this worked as well!

NicoleHou
7 - Meteor

@Emmanuel_G  thank you, this worked with fewer steps, but how do I get the "make columns" tool?

 

Thanks!

 

Edited to say, I found this in the Laboratory menu! Thanks again!

Emmanuel_G
13 - Pulsar

@NicoleHou  Good to know ! 🙂

 

And yes, it is in the Laboratory menu ! Hope you liked this tool.

NicoleHou
7 - Meteor

@Cicada_lies_heavy   Thank you very much, the detail in your response helped me maintain all of the information correctly, thank you very much!

Labels