我想重命名从 MDX 查询中查询的列,但在 DIMENSION PROPERTIES 中,我尝试了不同的方法(WITH MEMBER / WITH SET ...),但它们仅适用于行/列,但不适用于 DIMENSION PROPERTIES条款。我希望能从社区中得到一些帮助。
我在查询中的内容如下:
WITH
MEMBER [Measures].[Closing Balance (HL)] AS [Measures].[1234123]
SELECT
{
[Measures].[Closing Balance (HL)]
}
ON AXIS(0) ,
NON EMPTY
{
[0SALES_OFF].[All].Members.Children
}
DIMENSION PROPERTIES
[0SALES_OFF].[2ZWSALER__0SALES_OFF],
[0SALES_OFF].[1ZWSALER__0SALES_OFF],
ON AXIS(1)
FROM
[TABLE_NAME]
SAP VARIABLES [ZVMONYR] INCLUDING "01.2019":"04.2019"
如果我查询这个,结果表如下所示:
| [0SALES_OFF].[2ZWSALER__0SALES_OFF] | [0SALES_OFF].[1ZWSALER__0SALES_OFF] | [Measures].[Closing Balance (HL)] |
|-------------------------------------|-------------------------------------|-----------------------------------|
| 111 | ONE NAME | 123.09 |
| 222 | ANOTHER NAME | 233.23 |
但我想要以这种方式重命名列:
| SALES_OFFICE_ID | SALES_OFFICE_NAME | [Measures].[Closing Balance (HL)] |
|-----------------|-------------------|-----------------------------------|
| 111 | ONE NAME | 123.09 |
| 222 | ANOTHER NAME | 233.23 |
提前感谢您的帮助!