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: 
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 (1)
1 Solution

Accepted Solutions
sunny_talwar

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

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.