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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
jerryr125
Creator III
Creator III

Avg Aggr issue

Hi - 

I am trying to create a KPI showing the average of the quantity sold / product name based upon the selection.

=Avg(aggr(sum(QuantitySold), [ProductName]))

Example - the three values are 483,404,1152.

The total is 2039 and average is 679.

It is displaying 2039 instead of 679 - thoughts ? 

1 Solution

Accepted Solutions
jerryr125
Creator III
Creator III
Author

Resolved...

=Avg(aggr(sum(QuantitySold), [SalesDate.autoCalendar.YearMonth]))

View solution in original post

1 Reply
jerryr125
Creator III
Creator III
Author

Resolved...

=Avg(aggr(sum(QuantitySold), [SalesDate.autoCalendar.YearMonth]))