Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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