How to display multiple dimensions on rows in MDX query?

后端 未结 1 1600
刺人心
刺人心 2021-01-28 02:20

I have measure called Sales KG in my cube and two dimensions: Groups and Formats.

Is there anyway to display last ones in single r

相关标签:
1条回答
  • 2021-01-28 02:41

    It is giving you the above error because you are breaking dimensionality and hierarchility. When you write

     { ([Formats].[Format_TT].[Format_TT]),
     ([Groups].[Group_Name].[Group_Name]) }
    

    MDX translates that you have a set (marked by {}), containing two tuples ([Formats].[Format_TT].[Format_TT]),([Groups].[Group_Name].[Group_Name]), marked by "()" each. Now the issue is all the tuple in a SET must contain then same hierarchies(The principle of hierarchility), plus they should be in the same order (Dimensionality)

    select
    [Measures].[Sales KG] on Columns,
    { ([Formats].[Format_TT].[Format_TT], [Groups].[Group_Name].[Group_Name]) } on Rows
    from [Model]
    
    0 讨论(0)
提交回复
热议问题