Discussion board where members can get started with QlikView.
What is the difference between the below expressions?
1) =Avg(Aggr( Sum(Sells), Products ))
2)=Aggr( Sum(Sells), Products )
LOAD * INLINE [
Go to Solution.
You have only one record for each of the Product, if you have multiple records then you can see the difference.
In this situation the AVG does not do much
As you already use AGGR to group you product AVG from this group will be the same as the AGGR.
and is the same as
If you are using Product as dimension then there is no need of Aggr(), it should be used when there is no corresponding dimension used in the chart.
Below expressions also give the same result
Aggr() will have performance, so use it carefully whenever you need it really.