Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
dwenlvov
Contributor II
Contributor II

How I can countif in basis Aggr?

Hi!

I have table (id, rating)

How can I use set analysis in the basis  Aggr(Count(rating), id)?

I mean(example. and I know it's wrong:) )  =Count({< Aggr(Count(rating), id) = {">=$('30')"}>}  Aggr(Count(rating), id))

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

HI @dwenlvov 

Kush expression will work fine. 
other method, You can try like below

Sum(Aggr(if(Count(rating)>=30,1,0),Id))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

5 Replies
Kushal_Chawda

@dwenlvov  may be like below

=count({<id ={"=Count(rating)>=30"}>}id)

dwenlvov
Contributor II
Contributor II
Author

nope 😞 result 0

it's not true

dwenlvov
Contributor II
Contributor II
Author

maybe this will help explain

MayilVahanan

HI @dwenlvov 

Kush expression will work fine. 
other method, You can try like below

Sum(Aggr(if(Count(rating)>=30,1,0),Id))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
dwenlvov
Contributor II
Contributor II
Author

Yes! THKS!