简体   繁体   English

MDX YTD不起作用

[英]MDX YTD Not working

What am I doing wrong??? 我究竟做错了什么??? Cannot get YTD working. YTD无法正常工作。

RUNNING: 正在运行:

With
MEMBER [measures].[YTDFees] AS
Aggregate (YTD([Date Dim].Year.CurrentMember),[Measures].[Fees])

SELECT {[Measures].[Fees],
    [Measures].[YTDFees]
    } ON COLUMNS,
{[DATE Dim].[Year].Children*[Date Dim].[Month].children }  ON ROWS
FROM [CheckCashingView]

GETTING: Fees YTDFees GET:费用YTDFees

2013 1 6230939.22 6230939.22 2013 1 6230939.22 6230939.22

2013 2 7856979.01 7856979.01 2013 2 7856979.01 7856979.01

2013 3 7058780.18 7058780.18 2013 3 7058780.18 7058780.18

2013 4 6144556.08 6144556.08 2013 4 6144556.08 6144556.08

2013 5 6704988.58 6704988.58 2013 5 6704988.58 6704988.58

2013 6 6298429.00 6298429.00 2013 6 6298429.00 6298429.00

Probably you didn't mark your time dimension as a "Time" dimension in the SSAS option. 可能您没有在SSAS选项中将时间维度标记为“时间”维度。 Go to the SSAS Solution Explorer, select your Time dimension and open this dimension. 转到SSAS解决方案资源管理器,选择“时间”维度,然后打开此维度。 Select the name of your Time dimension in the Attributes section make sure that in the dimension properties there is a "Time" in the Type properties. 在“属性”部分中选择“时间”维度的名称,确保在维度属性中的“类型”属性中有一个“时间”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM