Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
georgeD
Contributor II
Contributor II

Nested aggregation not allowed

Hi every one

I wrote the code below but there is an error :Nested aggregation not allowed

sum({<[cust]={"=Rank(sum({<[product.cat]={'7070'}>} [sales]))<=10"} >} sum({<[product.cat]={'7070'}>} [sales]))

 

what can i do

 

thanks in andvance

Labels (2)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

As below

sum({<

[cust]={"=Rank(sum({<[product.cat]={'7070'}>} [sales]))<=10"}

,[product.cat]={'7070'}

>} [sales])

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

4 Replies
vinieme12
Champion III
Champion III

As below

sum({<

[cust]={"=Rank(sum({<[product.cat]={'7070'}>} [sales]))<=10"}

,[product.cat]={'7070'}

>} [sales])

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
georgeD
Contributor II
Contributor II
Author

Thank you very much. It is ok.

may you write how could i sort it ?

vinieme12
Champion III
Champion III

If you are using [cust] as dimension then choose sort by expression and use your rank expression

=Rank(sum({<[product.cat]={'7070'}>} [sales]))

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
georgeD
Contributor II
Contributor II
Author

i m using [cust ] as dimension and i  want to sort it descending based on the previous code.

Sorry for all  this, im using qlik only few days and im confuse a litle bit.

 

Thanks in andvance