
Contributor III
2020-08-04
12:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
555 Views
1 Reply


Master III
2020-08-04
12:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe like this
Count({<[Claim Reference] ={'> 4'},[Risk Class]={'Vehicle'}>}distinct [Policy Number])
534 Views
