Excel 2010作为SSAS 2008R2的客户机;不显示命名集中的所有成员
Excel 2010中有一个创建自定义mdx集的功能。我已经创建了一个——它将来自不同维度的成员组合在一起,在SSMS中运行良好,但在Excel中,我只能看到集合的一半成员。 以下是从Excel捕获的MDX查询: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],
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所需要的