销售时间维度:
---销售年
----销售月
-------销售日
2007年
2月
2007-2-1 10
2007-2-2 20
2008年
2月
2007-2-1 100
2007-2-2 200 数据挖掘研究院
我写的计算表达式:
(
ParallelPeriod
(
[销售时间].[销售年-月-日].[销售月],
1,
[销售时间].[销售年-月-日].CurrentMember
),
[Measures].[数量]
)
该表达试没有判断去年该月份是否存在的情况,请问如何判断,去年是否存在当前的月份.
不知道在Cube中如何去循环...with set [贸易时间] as 'Filter( { Descendants ( [时间].[所有 时间].&[1997], [时间].[月] ) } , Not IsEmpty([金额] ) )'
[时间].[所有 时间].&[1997] 可以套你上面计算机表达式:
ParallelPeriod
(
[销售时间].[销售年-月-日].[销售月],
1,
[销售时间].[销售年-月-日].CurrentMember 数据挖掘论坛
) --楼上的,我的是这么写吗??能判断去年当月的数据吗??
CREATE MEMBER CURRENTCUBE.[MEASURES].[计算成员]
AS Filter(
{Descendants( ParallelPeriod
(
[销售时间].[销售年-月-日].[销售月], 数据挖掘实验室
1,
[销售时间].[销售年-月-日].CurrentMember
) , [销售时间].[销售年-月-日].[销售月]) 数据挖掘研究院
},Not IsEmpty([Measures].[数量])
),
VISIBLE = 1 ;
报告错误...Create By Any-Extract(WL-AE) 数据挖掘交友