简体   繁体   English

简单的MDX过滤器查询

[英]Simple MDX Filter Query

Can anyone explain why this one fails : 谁能解释这个失败的原因:

WITH MEMBER [Measures].[T]
as
    Filter(
                [Customer].[Customer Name].Children,
                [Measures].[Sales] > 65042.79
        )
SELECT 
  [Measures].[T] on 0
FROM [SalesCube]

while this one is fine? 而这个还好吗?

SELECT 
    Filter(
            [Customer].[Customer Name].Children,
            [Measures].[Sales] > 65042.79
        ) on 0
FROM [SalesCube]

The first one gives an errror 第一个错误

"The function expects a string or numeric expression for the argument. A tuplet set expression was used." “该函数期望参数使用字符串或数字表达式。使用了连音符集表达式。”

They look exactly the same to me. 在我看来,它们完全一样。

Realised that it should have been 意识到应该

WITH SET [T]
as
    Filter(
                [Customer].[Customer Name].Children,
                [Measures].[Sales] > 65042.79
        )
SELECT 
  [Measures].[T] on 0
FROM [SalesCube]

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

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