Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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
Employee
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
Employee
Employee

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

or

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

Not applicable
Author

Thanks Jonathan It worked