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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
giovannarugerio
Partner - Contributor
Partner - Contributor

Set Analysis: syntaxes, functions.

I'm trying to count how many emails with a number in the username are, and display it in a KPI.

I tried with this 

count({1<email ={"$(= purgechar(email,'0123456789')"}>)}email)

but it's not working.

Labels (3)
2 Replies
m_woolf
Master II
Master II

You might want to create a flag in script to make this easier.

if(email = purgechar(email,'0123456789'),1,0) as EmailNum,

Then the expression becomes:

count({1<EmailNum = {1}>)}email)

sunny_talwar
MVP
MVP

or may be this

Count({1<email = {"=Len(KeepChar(Only({1} email), '0123456789')) > 0"}>} email)