Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

issue with roll up

$
0
0

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])
  )
)

 


Viewing all articles
Browse latest Browse all 2472

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>