我有一个包含 10 项措施的事实表。在 10 个度量中,有 9 个在 Sum 级别聚合。但是我有 Unit Price,它是一个非加性事实度量。当我转到 Aggregation 的属性并将其设为 none 时,它在 SSAS 中不起作用并在 Cube 中给出 NULL 值处理多维数据集后。那么有什么方法可以让我处理我的非加法度量 Unit_Price.SO 创建了一个 MDX。我不知道这是否是正确的方法。这是我的 MDX。请建议一种方法来执行上述操作。
with member [Measures].[Non Additive Unit Sales] as
case when [Time].Level is [Time].[Month]
and [Gender].Level is [Gender].[Gender]
and [Customers].Level is [Customers].[Name]
and [Product].Level is [Product].[Product Name]
then [Measures].[Unit Sales]
else null
endselect
{[Measures].[Unit Sales],
[Measures].[Non Additive Unit Sales],
[Measures].[Semi Additive Unit Sales]}
* [Gender].Members ON COLUMNS,
[Time].Members ON ROWS
from [Sales]