SSAS Articles MDX Average among siblings
Average among siblings
User Rating: / 0
PoorBest 
Written by Tomislav Piasevoli   
Sunday, 24 January 2010 01:18

Average among siblings, as a calculated measure, is typically used to compare the result of each member in a group where the group is formed from his siblings. In case of a known hierarchy, the core expression is relatively easy.

(
[<Dimension name>].[<Hierarchy name>].CurrentMember.Parent,
 [Measures].[<Measure name>]
)
/
Count(
      NonEmpty(
               [<Dimension name>].[<Hierarchy name>].CurrentMember.Siblings,
               [Measures].[<Measure name>]
              )
     )

<> represent placeholders.

Read more...

 

 

Tags: article, mdx

Quick Poll - Please vote

What is the most important feature for you in the BIDS Helper utility?