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

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
20 - Arcturus

@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