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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
rutger_jansen
Contributor III
Contributor III

Nested Aggr()

Hi,

I'm trying to get the sum of weighted scores within a dimension's class using nested Aggr(). The attached example should clarify what I'm trying to achieve and what I've tried. The real version has some set analysis as well but I don't expect that will make a difference.  

Thanks,

Rutger

Labels (2)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this

Aggr(NODISTINCT 
  Sum(Aggr(
    Sum(sales)/Sum(TOTAL <vehicle> sales) * score
  , vehicle, engine))
, vehicle)

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

Try this

Aggr(NODISTINCT 
  Sum(Aggr(
    Sum(sales)/Sum(TOTAL <vehicle> sales) * score
  , vehicle, engine))
, vehicle)
rutger_jansen
Contributor III
Contributor III
Author

Thanks very much Sunny.