Assuming that you're using AS 2000, Distinct Count measures can't be
dynamically aggregated. In that case, a [Product] dimension, with
individual Products as members, can be used to identify products that
have sold for a given combination of reasons. For a [Sales] cube,
something like:
Quote:
|
With Set [ReasonCombo] as
|
'{[Reason].[Reason1], [Reason].[Reason3]}'
Member [Measures].[ProductCount] as
'Count(Except([Product].[ProductID].Members,
Generate([ReasonCombo],Except([Product].[ProductID].Members,
NonEmptyCrossJoin([Product].[ProductID].Members,
{[Reason].CurrentMember}, 1)))))'
Select {[Measures].[ProductCount]} on columns
from [Sales]
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!