私は持っているキューブを持っています
- 2つのメジャーメンバー:(
[Measures].[Value]
整数)と[Measures].[EffectiveBelowLevel]
(整数)。 - と呼ばれる不規則なユーザー階層を持つ[DimParentChild]と呼ばれるディメンション
[ParentChildHierarchy]
。
メジャーディメンション([Measures].[EffectiveValue])
に基づいて計算されたメンバーを作成します。これに基づいて[Measures].[Value]
、クエリを実行する[DimParentChild]
と、次のように[ParentChildHierarchy]
動作します。
- [Measures].[Value] is used if the hierarchy level of [DimParentChild].[ParentChildHierarchy].CURRENTMEMBER > [Measures].[EffectiveBelowLevel].
- 0 is used if the hierarchy level of [DimParentChild].[ParentChildHierarchy].CURRENTMEMBER <= [Measures].[EffectiveBelowLevel].
メジャーディメンションの計算されたメンバーを使用して、この機能を実現することは可能ですか?
はいの場合、式はどのようになりますか?
そうでない場合、他にどのような方法がありますか?他の種類のソリューション(mdxクエリなど)にも非常に興味があります。
例として:
[メジャー] [値][EffectiveBelowLevel]ParentChildAssociation 101孫1 202孫2
[DimParentChild]。[ParentChildHierarchy] メンバーHierarchyLevel説明 親1- 親の子2の最初の子 GrandChild13子の最初の子 GrandChild2子の3番目の子
このデータを使用すると、[Measures]。[EffectiveValue]は次のようになります。
親子EffectiveValue 親0 子供10 孫110 GrandChild2 20