Discussion board where members can get started with Qlik Sense.
Expectation: Find the average of “Total Sales” and then find how many salespeople have an average order value of less than the overall average sales in each country. Use Dimensions as Country. Use Straight Table
The formula being used:
Sum(if(aggr(avg(LineSalesAmount), [Customer Country], [Sales Person])<avg(LineSalesAmount),1,0))
However, I am getting this error "Error: Nested Aggregation is now Allowed." Please guide me to the solution.
Can you give a try on the below expression and see if it works:
Sum(if(avg(aggr(LineSalesAmount, [Customer Country], [Sales Person]))<avg(LineSalesAmount),1,0))