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: 
Not applicable

How to count yes and no's

Hi all,

just started to use QlikView and for my analysis I have to know how many

Nee (no's) and how many Ja (Yes's) there are.

As the dimension I used the month.

Now I wants to know per month how many Yes's and how many No's there are.

could you help me how the expression works for counting text? I'm such a newbie so please help 🙂

thanks in advance,

MonthsCasco boven eigen risico (niet verhaalbaar)
1Nee
1Nee
2Nee
2Ja
2Ja
3Nee
3Nee
3Nee
4Ja
4Ja
4Nee
4Ja
4Nee
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

yes: count({<[Casco boven eigen risico (niet verhaalbaar)]={'Ja'}>} Months)

no: count({<[Casco boven eigen risico (niet verhaalbaar)]={'Nee'}>} Months)


talk is cheap, supply exceeds demand

View solution in original post

6 Replies
tresesco
MVP
MVP

Use a pivot table; take first dimension as Month, 'Casco boven eigen risico' as second and use Count(DISTINCT[Casco boven eigen risico]) as expression.

Assuming 'Casco boven eigen risico' is your field name that has 'Yes'/'No' values.

israrkhan
Specialist II
Specialist II

Hi,

Find the Attached File, i used option instead of Casco boven eigen risico (niet verhaalbaar)

janardhan
Creator
Creator

hi ,

Please find the below attachment, hope this will helps!!!!

Not applicable
Author

A quick and dirty way is just to use straight table with Month as dimension and 2 exs as below:

ex1: count(if( [Casco boven eigen risico (niet verhaalbaar)] = 'Nee', (1)))

ex2: count(if( [Casco boven eigen risico (niet verhaalbaar)] = 'Ja', (1)))

annafuksa1
Creator III
Creator III

Look at attach file. I made 2 different solutions.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

yes: count({<[Casco boven eigen risico (niet verhaalbaar)]={'Ja'}>} Months)

no: count({<[Casco boven eigen risico (niet verhaalbaar)]={'Nee'}>} Months)


talk is cheap, supply exceeds demand