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

Alteryx Designer Desktop Discussions

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

Count of concatenated value

Cheshta22
6 - Meteoroid

Hi Community.

Trying to figure out how to calculate the number of values in concatenated column.

Example:

 

Cheshta22_0-1679498088180.png

 

Can someone help me with the alteryx please.

6 REPLIES 6
binuacs
21 - Polaris

@Cheshta22 One way of doing this

 

binuacs_0-1679498976153.png

 

CWG0816
5 - Atom

Hi Cheshta22,

 

So long as there is a space after the commas you can use the CountWords formula. See the attached example. 

 

Martyn
9 - Comet

Formula Tool with....

 

REGEX_CountMatches([Concatenated],",") + 1

CharlieS
17 - Castor
17 - Castor

Good solutions! Here's another: A Formula tool with this expression would count the number of commas in the string (then add 1 to give the count of arguments)

REGEX_CountMatches([Concatenated],",")+1

 

Cheshta22
6 - Meteoroid

Thank you :)

RobertOdera
13 - Pulsar

Hi, @Cheshta22 

 

Try the below.

I hope you find it helpful - cheers!

 

RobertOdera_0-1679500245366.png

 

Labels
Top Solution Authors