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.
SOLVED

Concatinating rows depending on certain condition

cycyg
7 - Meteor

Hello community!!

 

Would appreciate any help for the below problem since I could not find any similar questions on the community.

I am trying to concatenate the description values as shown in input screenshot below to reach the output screenshot. It is not always the same spacing between the amounts. 


Input:

cycyg_0-1637755054307.png

Output:

cycyg_1-1637755074460.png

 

 

2 REPLIES 2
Kenda
16 - Nebula
16 - Nebula

Hello @cycyg 

 

There are two ways that come to mind to solve this. Depending on the rest of your dataset, choose whichever one fits your needs the best.

 

1. Use a multi-row formula tool to update the Amount field to "fill down" the missing values with this expression:

iif(isempty([Amount]) && [Value]=[Row-1:Value] && [Type]=[Row-1:Type], [Row-1:Amount], [Amount])

Then use a summarize tool to concatenate the description field and group by the rest.

Kenda_0-1637756461498.png

 

 

 

2. You can use a summarize tool to concatenate the description field, take the first for the amount field, and group by the rest.

Kenda_1-1637756487126.png

 

TheOC
16 - Nebula
16 - Nebula

hey @cycyg 

You can achieve this with the summarize tool:

TheOC_0-1637756670677.png

 

TheOC_1-1637756674831.png

(Slightly mis-ordered)

Please find attached:

Cheers,
TheOC
Connect with me:
LinkedIn Bulien
Labels
Top Solution Authors