空单元格是空的,因为在结果空间中,如果给它们一个名称,这将没有意义,我建议您在代码中处理它。但是,为了学习,您可以使用以下查询,并忽略结果的前两列
with member
[measures].[ID ZONE] as
[ID ZONE].[ID ZONE].currentmember.name
[measures].[Year] as
[DimDate].[Year].currentmember.name
SELECT
{[measures].[ID ZONE],[measures].[Year], [Measures].[Nombre Inscrits] } ON COLUMNS,
{ ([ZONE CLIENT].[ID ZONE].[ID ZONE].ALLMEMBERS * [DimDate].[Year].[Year].ALLMEMBERS)}
ON ROWS FROM [Loisirs cube]
所以这里有一个关于冒险作品的样本
SELECT
{ [Measures].[Internet Sales Amount] } ON COLUMNS,
{ ([Product].[Category].[Category].ALLMEMBERS * [Date].[Calendar Year].[Calendar Year].ALLMEMBERS)}
ON ROWS
FROM [Adventure Works]
结果
现在让我们修改查询
with member
[Measures].[Category]
as
[Product].[Category].currentmember.name
member [Measures].[Year]
as
[Date].[Calendar Year].currentmember.name
SELECT
{ [Measures].[Category], [Measures].[Year],[Measures].[Internet Sales Amount] } ON COLUMNS,
{ ([Product].[Category].[Category].ALLMEMBERS * [Date].[Calendar Year].[Calendar Year].ALLMEMBERS)}
ON ROWS
FROM [Adventure Works]
结果