Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/28.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Excel 2010作为SSAS 2008R2的客户机;不显示命名集中的所有成员_Excel_Mdx_Olap - Fatal编程技术网

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

Excel 2010作为SSAS 2008R2的客户机;不显示命名集中的所有成员,excel,mdx,olap,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],

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仅显示类别13和类别14的值。 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中设置所有值?

我创建了两个隐藏成员

  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所需要的