Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
evgeniystuchalk
Partner - Creator II
Partner - Creator II

count "almost" distinct values

Hello! I'm have a client base, with phone numbers and names. I want to filter bots, thats placing orders sometimes. One of the main bot's singn: one phone number with different names.

So, i can count distinct names for every phone number.

98787c9551.jpg

But! Sometime real customers entering ther names differently. Like this:

d950e5ab2f.jpg

Perfect example. This is three versions of one name: Short Name, Extended name with error, and Real extended name.

Also, some body use several space bars between words, or even strange symbols like "+" instead of space bar.

So, my question is: How can i count this names as one?

1 Solution

Accepted Solutions
Not applicable

You could remove the "special" characters during LOAD, using PurgeChar

PurgeChar and KeepChar Functions

Then perhaps only check the first x characters from the name?

It will never be perfect, but a bit of tweaking of the parameters could get you close...

View solution in original post

2 Replies
Not applicable

You could remove the "special" characters during LOAD, using PurgeChar

PurgeChar and KeepChar Functions

Then perhaps only check the first x characters from the name?

It will never be perfect, but a bit of tweaking of the parameters could get you close...

marcus_sommer
MVP
MVP

Maybe you performed a count([Customer ID]) instead of count([Customer Name]).

- Marcus