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

How to add a where condition in count function of qlik view

I have a column named a and i need to count it with some conditions. For eg., for the column a the values are,

a

---

yes

yes

yes

yes

no

no. I need to count only yes, how do i that in Qlik view. Any help would be really appreciated.

Thanks,

Praveen.

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     You can use set analysis for this

     =Count({<a={'yes'}>} a) it counts yes

     =Count({<a={'no'}>} a)  it counts no

Hope it helps

Celambarasan

View solution in original post

3 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     You can use set analysis for this

     =Count({<a={'yes'}>} a) it counts yes

     =Count({<a={'no'}>} a)  it counts no

Hope it helps

Celambarasan

v_iyyappan
Specialist
Specialist

Hi,

     I attached sample QV. Hope its helpful for you.

Regards,

Iyyappan

Not applicable
Author

How would you do it if you had two conditions, ie. yes and maybe?