Please, see also this post on Measures: SQL aggregation & projection.
Andreas (BOB member since 2002-06-20)