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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
jyothish8807
Master II
Master II

Count text in the column

Hi All,

I am trying to count no of entries in a column respective to different user, but QV is counting the blank entries also. how to solve this issue?

UserEntry
ayes
ayes
a
byes
b
b
cyes
cyes
cyes
c
c

Now when i try to take a count using straight chart, i am getting :

a - Count (3) instead of 2.

b - Count (3) instead of 1

c - Count (5) instead of 3

When i export the data into excel and try to do it then again the same thing happens on excel sheet also.

Thanks & Regards

Jyothish KC

Best Regards,
KC
1 Solution

Accepted Solutions
bgerchikov
Partner - Creator III
Partner - Creator III

Hi Jyothish,

Here are a couple expressions you can use:

sum(if(len(trim(Entry))>0,1,0))

or

-1*sum(len(trim(Entry))>0)

Hope it will help

View solution in original post

6 Replies
bgerchikov
Partner - Creator III
Partner - Creator III

Hi Jyothish,

Here are a couple expressions you can use:

sum(if(len(trim(Entry))>0,1,0))

or

-1*sum(len(trim(Entry))>0)

Hope it will help

amit_saini
Master III
Master III

Hi KC,

Please see the attachment.

Thanks.

AS

Anonymous
Not applicable

You can even use textcount()

jyothish8807
Master II
Master II
Author

Thanks a lot Boris

Regards

Jyothish KC

Best Regards,
KC
jyothish8807
Master II
Master II
Author

Thanks a lot bro .

Regards

KC

Best Regards,
KC
jsingh71
Partner - Specialist
Partner - Specialist

Here is my solution:

 

Count

({<Entry ={yes}>}User)