任何人都可以告诉我差异,他们为什么会产生不同的结果?

时间:2009-08-25 22:32:32

标签: olap mdx cube

1)

select non empty 

           [Measures].[carded transactions] on 0,
           {[Date Dimension].[DATE].&[39446]:[Date Dimension].[DATE].&[39505]} on 1

from [Food and Beverage]

where 
(
       FILTER(
      {( [Revenue Center].[Revenue Center].[Revenue Center]
       * [Date Dimension].[Fiscal Calendar].[Fiscal Day] 
       * [Date Dimension].[Day Name].[Day Name])}
       , [Measures].[FnB Checks] > 0
             )
 )

2)

select non empty 

    [Measures].[carded transactions] on 0,
    {[Date Dimension].[DATE].[DATE]} on 1

FROM

 (SELECT 
        ([Date Dimension].[Fiscal Calendar].[Fiscal Day].&[2008]&[1]&[1] 
        : [Date Dimension].[Fiscal Calendar].[Fiscal Day].&[2008][2]&[60]) ON  0  
  FROM [Food and Beverage]
 ) 

where 
(  
  FILTER(
           {( [Revenue Center].[Revenue Center].[Revenue Center]
       * [Date Dimension].[Fiscal Calendar].[Fiscal Day] 
       * [Date Dimension].[Day Name].[Day Name])}
    , [Measures].[FnB Checks] > 0
        )
  )

感谢名单。帮助赞赏。

1 个答案:

答案 0 :(得分:0)

看起来它们跨越不同的日期,这就是为什么......