Calculated Members with multiple Attribute Hierarchy - MDX
问题 I found this little code where it dynamically calculates TOTAL s for all Dimension/Hierarchy I want. This is close to what I need but will not work for Dimensions that have different number of Hierarchy Levels (Attribute Hierarchy). Current Code only works if there is only one Attribute Hierarchy because of CurrentMember.Parent . I could use CurrentMember.Parent.Parent for Dimension.Hierarchy that have two levels and so on but would not work for the the ones with only one Attribute Hierarchy