Sql server 2012 ssas mdx查询无法解析歧义

Sql server 2012 ssas mdx查询无法解析歧义,sql-server-2012,mdx,Sql Server 2012,Mdx,我正在使用SQLServerManagementStudio 2012,数据库Adventures可以正常工作 我编写了这个mdx查询: SELECT { ( [Measures].[Reseller Sales Amount] ) } on axis(0), { ( [Geography].[Country].Children, [Product].[

我正在使用SQLServerManagementStudio 2012,数据库Adventures可以正常工作

我编写了这个mdx查询:

SELECT
    {
        (
            [Measures].[Reseller Sales Amount]
        )
    } on axis(0),
    {
        (
            [Geography].[Country].Children,
            [Product].[Category].[Accessories]
        )
    },
    {
        (   
            [Geography].[Country].Children,
            [Product].[Category].[Bikes]
        )
    } on axis(1)
from [Adventure Works];
但回应如下:

Executing the query ...
Parser: The statement dialect could not be resolved due to ambiguity.
Execution complete

有人能帮我吗?

你想要以下信息吗

SELECT 
  {[Measures].[Reseller Sales Amount]} ON 0
 ,
    [Geography].[Country].Children
  * 
    {
      [Product].[Category].[Accessories]
     ,[Product].[Category].[Bikes]
    } ON 1
FROM [Adventure Works];
或者这个:

SELECT
    {
        (
            [Measures].[Reseller Sales Amount]
        )
    } on axis(0),
    {
        (
            [Geography].[Country].Children,
            [Product].[Category].[Accessories]
        )
    ,

        (   
            [Geography].[Country].Children,
            [Product].[Category].[Bikes]
        )
    } on axis(1)
from [Adventure Works];

错误消息

您得到的方言错误是由逗号引起的:

SELECT
    {
        (
            [Measures].[Reseller Sales Amount]
        )
    } on axis(0),
    {
        (
            [Geography].[Country].Children,
            [Product].[Category].[Accessories]
        )
    },  //<<<<<EXTRA COMMA HERE
    {
        (   
            [Geography].[Country].Children,
            [Product].[Category].[Bikes]
        )
    } on axis(1)
from [Adventure Works];
选择
{
(
[措施][经销商销售额]
)
}在轴(0)上,
{
(
[地理][国家].儿童,
[产品][类别][附件]
)

},//(如果答案是您的问题,请随意点击勾号)