In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Data Preperation : Multi-column handling

harsha384
8 - Asteroid

Hi All,

 

I have a query below :

Input:

Col ACol B
11Alan
12Joe
13Paul
13Nick
13Colan
14Mike
14Chris
15Sam
16Lee
  

 

Output :

Col ACol B
11Alan
12Joe
13Paul+Nick+Colan
14Mike+Chris
15Sam
16Lee
  
  
  
  

 

when i tried using multi-row formula to compare and create a new field, I am getting a default value as 0.

 

Eg: IF [Col A]=[Row-1:Col A] THEN [Col B]=[Col B]+[Row+1:Col B] ELSE [Col B] ENDIF

 

Guide me how to work through it.

 

Thanks

Harsh

3 REPLIES 3
DataBlender
11 - Bolide

Hi @harsha384

 

A quicker way would be to use the Summarize tool : Group by Col A, then Concat Col B. At the bottom of the configuration window you will be able to define the separator as '+' to get the result you gave.

ShaanM
Alteryx Alumni (Retired)

Hi

 

You could solve this by using the cross tab and transpose tools

 

I have attached a solution

 

Shaan

Shaan Mistry
Co - Founder : datacurious.ai
harsha384
8 - Asteroid

Hey thanks @Asteriod. I absolutely forgot about summarzie function.Works great!

 

Thanks

Labels
Top Solution Authors