Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
krissy_s
Contributor III
Contributor III

Nested aggregation in set analyses

Hi All

I would like to count the number of policies which have more than 4 vehicle claims against them, but do not know how to write this in a set expression.

So far I have written the following:

=if(Count(match([Risk Class],'Vehicle') and Count(distinct If (([Claim Reference] > 4),[Policy Number]))))

The resulting error message is: Nested aggregation not allowed.

Can someone please assist?

Many thanks!

 

 

1 Reply
arulsettu
Master III
Master III

Maybe like this

 

Count({<[Claim Reference] ={'> 4'},[Risk Class]={'Vehicle'}>}distinct [Policy Number])