0
如何檢查MDX狀態下軸上是否存在一個尺寸?檢查MDX中是否存在尺寸
我需要檢查axis1上有多少時間單位(天,周,月......),並用它來計算度量。下面是例子,我應該怎麼做,我會採取一些尺寸:
days -> [Measures].[A] = [Measures].[B]/number of members in axis 1, from only date dimension (365)
months -> [Measures].[A] = [Measures].[B]/number of members in axis 1, from only date dimension (12)
months, product group -> [Measures].[A] = [Measures].[B]/number of members in axis 1, from only date dimension (12)
所以維度不同於日期維度不應該影響計算。我只需要從[日期]維度中指定成員。