Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
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])