Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
Hard to say without an example to test, but I suspect the problem is that there is no set expression on the avg() function itself, so the territory selection will affect the avg. Try
=avg({<TERRITORY=>} aggr(..))
Incidentally, the Num inside the aggr is doing nothing except making the statement more complex. If you want to format the results, the num should be the topmost expression.
=num(avg({<TERRITORY=>} aggr(..)), '0%')
Hope that helps
Jonathan
Hi
Hard to say without an example to test, but I suspect the problem is that there is no set expression on the avg() function itself, so the territory selection will affect the avg. Try
=avg({<TERRITORY=>} aggr(..))
Incidentally, the Num inside the aggr is doing nothing except making the statement more complex. If you want to format the results, the num should be the topmost expression.
=num(avg({<TERRITORY=>} aggr(..)), '0%')
Hope that helps
Jonathan
Thanks Jonathan