Not sure why IsAncestor() won't work, since this is a two-way
relationship, ie. if IsAncestor(A, B), then B is also a descendant of A.
Here's an example from Foodmart:
Quote:
|
With Member [Measures].[DrinkRate] as
|
'iif(IsAncestor([Product].[All Products].[Drink],
[Product].CurrentMember),
[Measures].[Store Sales]/([Measures].[Store Sales],
[Product].[All Products].[Drink]), NULL)',
FORMAT_STRING = 'Percent'
Select { [Measures].[DrinkRate]} on columns,
Non Empty [Product].[Product Name].Members on rows
From Sales
Where ([Store Type].[All Store Type].[Small Grocery])
- Deepak
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!