pentaho/mondrian — pull request #321 by kurtwalker (2014-05-21 15:26:18+00:00)
Title: Mondrian 1869 lag

[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. cherry-pick from f1d5991