带有Linkmember和过滤器2日期时间的MDX SSAS查询问题

时间:2017-05-25 18:29:05

标签: ssas mdx

我需要计算一次有效的机会计数总数(由开始日期和截止日期之间的时间段定义)不仅适用于该期间,而且适用于所有时间......

2016年的机会计数应包括NULL:2015和2016年结束的机会总和:NULL。

月份和年份相同

我有以下查询可行但却给出了季度,月份,日期级别的错误结果。但是给出了年份的正确结果。我想这是因为两个维度中的非唯一键名称

with member [Measures].[cumulative_count]
as 

aggregate({NULL:[Time Dimension].[Year-Qtr-Month-Date].currentmember.lag(1) } *
{LINKMEMBER([Time Dimension].[Year-Qtr-Month-Date].currentmember.lead(1),[Opportuntity Close Dt].[Year-Qtr-Month-Date]):NULL}
,[Measures].[Opportunities Count])

SELECT [Measures].[cumulative_count] on columns,
[Time Dimension].[Year-Qtr-Month-Date].[Month].members on rows 
from 

AdventCube

我想我遇到链接

中指定的ALL成员问题

http://richardlees.blogspot.com/2011/06/linkmember.html

但要覆盖ALL成员,我遇到了语法错误。有人可以帮忙吗?

0 个答案:

没有答案