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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum of Average

I need to show the sum of average in a pivot table:

OfficeTotal
Sum(Prom SalesMonth)
Prom Month 1
Avg(SalesMonth 1)
Prom Month 2
Avg(SalesMonth 2)
Prom Month 3
Avg(SalesMonth 3)
Prom Month 4
Avg(SalesMonth 4)
Office 13237184
Office 2471451612
Office 349207139
Office 42210129
Office 55517131114
Office 639651612

But instead is calculated the average of the averages. Help please. Thanks.

1 Solution

Accepted Solutions
maxgro
MVP
MVP

try

sum(aggr(avg(Sales),Office,Month))

View solution in original post

2 Replies
maxgro
MVP
MVP

try

sum(aggr(avg(Sales),Office,Month))

Not applicable
Author

Massimo, thank you very much.