我想定義一個度量,它將按其他維度計算維度成員並將其作爲度量值添加到多維數據集中。 我應該創建一個具有維數屬性的計數的新度量值組嗎?還是創建一個計算的成員更好?在AdventureWorks的基於其他維度計算維度成員
例子:計數產品通過產品分類
WITH
MEMBER [Measures].[Number of Products] AS
Count(Existing
[Product].[Product].[Product].Members
)
SELECT
[Measures].[Number of Products] on 0,
{[Product].[Category].Members} ON ROWS
FROM [Adventure Works]
是什麼這個問題? 'Count(Existing')是答案 – whytheq