【问题标题】:Comparing two date fields in MDX比较 MDX 中的两个日期字段
【发布时间】:2015-10-09 21:41:51
【问题描述】:

我有类似的 sql 查询:

Select Count(*) 
from   [Response] 
where  ResponseEndDate < ValidDate

如何在MDX 中写这个?

【问题讨论】:

    标签: mdx date-comparison


    【解决方案1】:
    WITH MEMBER [Measures].cnt
    AS 
    ([Employee].[Department Name].MEMBERS
    ,[Employee].[Start Date].&[2002-02-05T00:00:00]
    :
     [Employee].[Start Date].&[2003-02-05T00:00:00]).COUNT
    
    SELECT
      [Measures].cnt ON 0
    FROM [Adventure Works]
    

    【讨论】:

    • 如果你能添加一点解释就好了。
    • 这并不能真正帮助说明mdx中的日期比较
    猜你喜欢
    • 2013-08-09
    • 2010-11-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多