Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
DK3
Contributor
Contributor

Nested aggregation not allowed :(

I have a large dataset with Locations, Parameters and Values. Need to visualize (in a Treemap or otherwise) the highest Counts of Values above their 95 percentile, by Parameter and Location. 

Wondering how to write an expression combining (if(Value>fractile(Value, 0.95), Value) and Count(Value) without running into the nested aggregation error. 

Fresh baby in the Qlik community, please bear with me. 

Labels (2)
1 Solution

Accepted Solutions
Or
MVP
MVP

I am unsure what your data model is, what your object definitions are, etc. I don't see anything wrong with the syntax. Is the inner if() statement working on its own when used in an object, e.g. a table? Are these two fields what you actually need to aggr() by?

Potentially useful reading:

https://community.qlik.com/t5/Design/AGGR/ba-p/1475149

 

View solution in original post

3 Replies
Or
MVP
MVP

DK3
Contributor
Contributor
Author

Thanks! Tried count(aggr(if(Value>fractile(Value, 0.95),Value),Parameter, Location)) but it returns zeros... 

Might you able to help me understand why?

Or
MVP
MVP

I am unsure what your data model is, what your object definitions are, etc. I don't see anything wrong with the syntax. Is the inner if() statement working on its own when used in an object, e.g. a table? Are these two fields what you actually need to aggr() by?

Potentially useful reading:

https://community.qlik.com/t5/Design/AGGR/ba-p/1475149