【问题标题】:How can I write an MDX query in Microsoft Reporting Services that displays measures names on Rows?如何在 Microsoft Reporting Services 中编写 MDX 查询以在行上显示度量名称?
【发布时间】:2011-12-16 16:26:25
【问题描述】:

如何在 Microsoft Reporting Services 中编写一个 MDX 查询,以在事实表中显示一些度量名称以及与该度量关联的总度量(金额)?并且度量名称应位于行上。例如,事实表具有如下度量;

FK  FK2   Measure AA Measure BB
1     4           60         89
2     4           15         78

MDX 查询应该显示

 Measure AA        149
 Measure BB         93

我怎样才能做到这一点??

【问题讨论】:

    标签: sql-server-2008 mdx reporting-services ssas-2008


    【解决方案1】:

    这是 Reporting Services 的一个已知限制;您必须使用一种解决方法,即使用 MDX 查询作为表达式

    ="SELECT { ... } ON ROWS "
    &"     , { ... } ON COLUMNS "
    &"  FROM MyCube"
    

    【讨论】:

      猜你喜欢
      • 2019-07-08
      • 1970-01-01
      • 2020-07-24
      • 1970-01-01
      • 2011-08-18
      • 1970-01-01
      • 1970-01-01
      • 2023-04-04
      • 1970-01-01
      相关资源
      最近更新 更多