[MONDRIAN-1869] - avg measures need to be aggregated in SQL similar to distinct-count.  You cannot aggregate avg from separate queries because the count for the denominator is lost by then.
Merge pull request #320 from kurtwalker/MONDRIAN-1869

[MONDRIAN-1869] - avg measures need to be aggregated in SQL similar to d...