hi,
i am having calculated measure..
i am having issue with its grand totals/when its been rolled up...
its behavior should be sum of its childrens rather than calculation based on rolled up values of its base measures..
i wrote it for product hierarchy and its working; but its not working on rest of product attributes..
so do u thnk i need to write the below query for each dimension/hierarchy....
mdx: for calculated measure
IIF
(
IsLeaf
(
[Dim Product].[Product].CurrentMember
)
,
([Measures].[PerUnitProductCost] * [Measures].[Order Quantity])
,Sum
(
[Dim Product].[Product].CurrentMember.Children
,
([Measures].[PerUnitProductCost] * [Measures].[Order Quantity])
)
)