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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Counting Text Fields in Column

In my Excel source on Incidents, I have a column called "Harm". I want a bar chart created when  Harm = yes since there are yes and no values in that column. I want to get the count of 'yes' values only. Please let me know how the expression should be. Thanks

1 Solution

Accepted Solutions
JonnyPoole
Former Employee
Former Employee

Sum ( if( Harm='yes', 1,0))

or

substringcount( concat( Harm,',') , 'yes')

View solution in original post

3 Replies
Not applicable
Author

Sorry I want to get the count when Harm = yes.

JonnyPoole
Former Employee
Former Employee

Sum ( if( Harm='yes', 1,0))

or

substringcount( concat( Harm,',') , 'yes')

Not applicable
Author

Thanks Jonathan It worked