2
WITH
SET TopCountry AS BOTTOMCOUNT( [Dimension Client].[Nazwa Firmy].MEMBERS, 3,      IIF(IsEmpty([Measures].[Fracht]), 0, [Measures].[Fracht]))
MEMBER [Order Count] AS (IIF(IsEmpty([Measures].[Facts Orders Count]), 0, [Measures].[Facts Orders Count]))

SELECT
[Order Count] ON COLUMNS,
TopCountry ON ROWS
FROM [N Wind PL2]
WHERE {
    ([Time].[Hierarchy].[Order Year].&[1997].&[1]),
    ([Time].[Hierarchy].[Order Year].&[1997].&[2]),
    ([Time].[Hierarchy].[Order Year].&[1997].&[3]),
    ([Dimension Client].[Kraj].&[USA]),
    ([Dimension Client].[Kraj].&[Meksyk])
}

我有错误,我在标题中写了,我在谷歌中搜索了它,解决方案对我来说是无法理解的。

4

2 回答 2

2

看起来您的 where 子句中的括号和大括号有点混淆了。尝试:

WHERE
    (
        {
            [Time].[Hierarchy].[Order Year].&[1997].&[1],
            [Time].[Hierarchy].[Order Year].&[1997].&[2],
            [Time].[Hierarchy].[Order Year].&[1997].&[3]
        },
        {
            [Dimension Client].[Kraj].&[USA],
            [Dimension Client].[Kraj].&[Meksyk]
        }
    )
于 2012-05-07T21:05:51.567 回答
0

将层次结构放在一个大括号中,将维度放在一个大括号中

于 2012-05-23T19:55:32.057 回答