我正在尝试为测量“已关闭的WIT历史记录”计算累计值 一个月的水平,但没有运气
这是我的时间维度:
这是我的查询:
WITH MEMBER [MEASURES].[Sales To Date]
AS
Sum
(
PeriodsToDate([DWH Dim Date].[(All)]),[Measures].[Closed WIT History]
)
SELECT
{[Measures].[Closed WIT History], [MEASURES].[Sales To Date]} ON COLUMNS,
[DWH Dim Date].[Month Name].[Month Name].Members ON ROWS
FROM [CUBE_Rel_1_AED_SAFe]
where [DWH Dim Date].[Year].&[2018]
但是,由于某种原因,我得到了以下结果:
我在做什么错?我也尝试过以下查询:
WITH
MEMBER [MEASURES].[Sales To Date] as
SUM(
{[DWH Dim Date].CurrentMember.Level.Members}.Item(0):[DWH Dim Date].CurrentMember,[Measures].[Closed WIT History]
)
SELECT
{[Measures].[Closed WIT History],[Measures].[Sales To Date]} ON COLUMNS,
[DWH Dim Date].[Month Name].[Month Name].Members ON ROWS
FROM [CUBE_Rel_1_AED_SAFe]
where [DWH Dim Date].[Year].&[2018]
但是然后我得到这样的错误: