Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How do I count the number of times that "yes" is appears in a column?

How do I count the number of times that "yes" is appears in a column?

2 Replies
johnca
Specialist
Specialist

Here's one solution...

Sum(If(column_with_yes='yes',1,0))

Replace column_with_yes with your column/field name.

HTH,

John

jagan
Luminary Alumni
Luminary Alumni

Hi Bob,

Try like this

Count({<DimensionName={'yes'}>} DimensionName)


OR

If you have any primary key field then use this expression.

Count({<DimensionName={'yes'}>} Distinct KeyDimensionName)


Note: Qlikview is case sensitive so give correct 'yes' or 'Yes' or 'YES'.

     Replace DimensionName or KeyDimensionName with your actual column names.


Hope this helps you.


Regards,

jagan.