Below is a recent post that addresses a similar situation, ie.
Aggregate() doesn't apply to a calculated measure. One option is such
cases is to use conditional logic like (I'm only guessing about how
[Open Calls] should work):
Quote:
|
MEMBER [Datum].[WD].[ Aggregation] AS
|
'Iif([Measures].CurrentMember is [Measures].[Open Calls],
([Measures].[Open Calls Count],
Tail([Vorige werkdag]).Item(0)),
AGGREGATE({[Vorige werkdag]}))'
http://groups.google.com/groups?dq=&...UTF-8&selm=uHE
sUG83DHA.1672%40TK2MSFTNGP12.phx.gbl
Quote:
|
From: Deepak Puri (deepak_puri (AT) progressive (DOT) com)
|
Subject: Re: Getting the Descendants of a calculated member?
View: Complete Thread (2 articles)
Original Format
Newsgroups: microsoft.public.sqlserver.olap
Date: 2004-01-20 17:56:59 PST
The problem is that Aggregate() cannot be applied to Calculated Members
(refer to Remarks in SQL BOL). When no solve order is specified, [Months
In Quarter] is evaluated first/calculated last. This returns 0 because
Calculated Members have no descendants. When the Calculated Members on
[Time] are given a higher solve order, an error is returned, because
they are computing the Aggregate() of the Calculated Member: [Months In
Quarter].
If all measures have the SUM aggregation function, then using Sum() in
lieu of Aggregate() will work, like this:
...
- Deepak
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!