SELECT NON EMPTY {
[Measures].[00 - Costs €]
}
ON COLUMNS, NON EMPTY {(
[Project Platoon].[Platoon].[Platoon].ALLMEMBERS ,
[Financial Data Month Validation].[Month Validation Status].[Month Validation Status].ALLMEMBERS
)}
DIMENSION PROPERTIES
MEMBER_CAPTION,MEMBER_UNIQUE_NAME ON ROWS
FROM
[DataCube]
CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
我得到的结果如下:
我的问题是:我怎样才能打扮出来?#34;这样我就显示了
|排|打开|关闭|费用|
|博格... | 12.000 | 99.000 | 12 + 99 = 111 |
即,将[MonthValidation]的值转换为列?
答案 0 :(得分:1)
只需将Month Validation Status
层次结构放在列上(这就是ON COLUMNS
和ON ROWS
的原因):
SELECT NON EMPTY {
[Measures].[00 - Costs €]
} *
[Financial Data Month Validation].[Month Validation Status].[Month Validation Status].ALLMEMBERS
ON COLUMNS,
NON EMPTY {
[Project Platoon].[Platoon].[Platoon].ALLMEMBERS
}
DIMENSION PROPERTIES
MEMBER_CAPTION,MEMBER_UNIQUE_NAME ON ROWS
FROM
[DataCube]
CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS