Excel 2010作为SSAS 2008R2的客户端不会显示命名集中的所有成员

时间:2012-11-13 05:22:54

标签: excel mdx olap

有一个功能可以在Excel 2010中创建自定义mdx集。我创建了一个 - 它组合了来自不同维度的成员并且在SSMS中工作正常但在Excel中我只能看到集合的一半成员。 这是从Excel中获取的MDX查询:

WITH
SET [13,14,Trash, MarkDown] as {
([Product].[Category].&[13], [Discounting].[Liquidity].[All discs])
,([Product].[Category].&[14], [Discounting].[Liquidity].[All discs])
,([Product].[Category].[All products], [Discounting].[Liquidity].[Liq group].&[1])
,([Product].[Category].[All products], [Discounting].[Liquidity].[Liq group].&[0])
}
SELECT NON EMPTY {[13,14,Trash, MarkDown]} DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME ON COLUMNS
  FROM [CubeName] 
WHERE ([Measures].[On hand qty]) 
CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS

Excel仅显示Category13和Category14的值。 SSMS做得更多 - 它显示了所有值。

在Excel中,它看起来像这样:

             | category  13  |  category   14
on hand qty  |    150        |     200

在SSMS中:

             | category  13  |  category   14  |  All products  | All products
             | All discs     |  All discs      |  Liq group 1   | Liq group 0
on hand qty  |    150        |     200         |      35        |      85

我试图在服务器端制作这个设置,但是没有用 - 结果excel是一样的。是否可以在Excel中设置所有设置值?

1 个答案:

答案 0 :(得分:1)

我创建了两个隐藏成员

  MEMBER [Product].[Category].[All Liq 1] as ([Product].[Category].[All], [Discounting].[Liquidity].[Liq group].&[1])
  MEMBER [Product].[Category].[All Liq 0] as ([Product].[Category].[All], [Discounting].[Liquidity].[Liq group].&[0])

然后创建了集

{[Product].[Category].&[13], [Product].[Category].&[14], [Product].[Category].[All Liq 1], [Product].[Category].[All Liq 0]}

它确实表明了excel所需要的东西。