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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
gerrycastellino
Creator III
Creator III

Aggregation question

I have a multi-part aggregation that I'm doing. The last column (Tot by Agent) should be summed up by agent , and should be the same for each agent regardless of Alliance.

I've indicated what I'm expecting.

The Expression that I currently have is this:

sum(

     aggr(

          (

          sum(Calls)

          *

               (

               sum(Calls)

               /

               sum( TOTAL <SalesRep> Calls)

               )

          )

     ,SalesRep)

)

qvw file attached.

Thankx in advance.

Sum by agent.PNG

1 Solution

Accepted Solutions
JaMajka1
Partner Ambassador
Partner Ambassador

Hello, try this one. Hope, that helps .

sum(total <SalesRep> aggr(

sum(total <Alliance,SalesRep> aggr(

sum([Calls Last]*[Calls Last])

/

sum(total <SalesRep> aggr(sum([Calls Last]),SalesRep)),SalesRep))

,SalesRep))

BR,

Maria

View solution in original post

2 Replies
JaMajka1
Partner Ambassador
Partner Ambassador

Hello, try this one. Hope, that helps .

sum(total <SalesRep> aggr(

sum(total <Alliance,SalesRep> aggr(

sum([Calls Last]*[Calls Last])

/

sum(total <SalesRep> aggr(sum([Calls Last]),SalesRep)),SalesRep))

,SalesRep))

BR,

Maria

gerrycastellino
Creator III
Creator III
Author

gosh !  that is correct !

let me know where to send the box of chocolates 🙂

Gerry.