Alteryx Designer Desktop Discussions

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

Count specific entry

Jeff88
6 - Meteoroid

Hi,

 

I would like to seek your help with my data. I am trying to count  the exact entry from a specific column, however, it contains multiple words with characters. I just would liek to count specific entry (in my chase below its letter A)

EntriesCount 
A,AB, BC;A B1should count (first letter A)
AB, BC; A BNull 
BC#A1should count
BC#BC,A1should count
BC, B A B#CNull 
BC,A#C1 
5 REPLIES 5
DavidSkaife
13 - Pulsar

Hi @Jeff88 

 

If you're simply wanting to count the number of times the letter A appears then the Regex formula REGEX_CountMatches([Field], 'A') will work.

 

If you have more specific requirements you may need to explain a bit further for your example.

Jeff88
6 - Meteoroid

Hi David, 

 

Thank you for the prompt answer, however what i need to do is just to count the specific word, here's an example data again and what should i expect to reflect.

 

On a form, user can select multiple colors and when I extract my data to excel, it will show the table below and it was separated by special characters like ;

I only would like to count if the user selection includes "Red" not "Light Red" or "Dark Red"

If the field consist of "Light Red" and "Red", it should count as 1

If the field consist of "Light Red" and "Dark Red", it should not count

 

ItemResult (count) 
Red1 
Dark Red; Light RedNull 
Red;Blue;Light Green; Light Red1 
Brown;Red;Dark Blue1 
Light Red, BlueNull 
Red, Dark Red, Light Red1 
Dark Red;Red;Brown1 
Light Red# Red1 
Emmanuel_G
13 - Pulsar

Hi @Jeff88 ,

 

You can find a test attached with exact desired output.

 

Let us know if it works the way you want.

 

Cheers !

Emmanuel_G_0-1657413054112.png

 

Jeff88
6 - Meteoroid

This one works. Thank you so much  😁

Emmanuel_G
13 - Pulsar

@Jeff88  Glad to know that 😁 !

Labels