【发布时间】:2018-03-11 03:56:51
【问题描述】:
以下是我的查询。
WITH
MEMBER [Measures].[Quantity - Prior Year] As
(
PARALLELPERIOD(
[Date].[Fiscal Year].[Fiscal Year]
, 2
, [Date].[Fiscal Year].CurrentMember
)
,[Measures].[Order Quantity]
)
SELECT
{
[Measures].[Order Quantity],
[Measures].[Quantity - Prior Year]
} ON AXIS(0)
, {DrilldownLevel([Date].[Fiscal])} ON AXIS(1)
FROM [Adventure Works]
CELL PROPERTIES VALUE, FORMAT_STRING, FORMATTED_VALUE
但计算度量的总计始终为 NULL?
任何帮助将不胜感激。
【问题讨论】:
-
您是否在问为什么“所有期间”、“2002 财年”或“2003 财年”的“数量 - 上一年”为 NULL?
-
@jhenninger24 不,我想他在问为什么“数量 - 上一年”和“所有期间”的单个单元格为空?而不是总和 [null + null + 24096 + 82181] ?