以下脚本旨在返回三个字段:
1.地区
2.收入
3. %Parent ...我们地理维度的结构,这将是该地区的收入占大陆收入的百分比。
WITH
MEMBER Measures.[%Parent] AS
[Measures].currentmember/
(
[Geolocation].[Geography].currentmember.parent.name,
[Measures].currentmember
), format_string ="Percent"
SELECT
ORDER(
DESCENDANTS(
[Geolocation].[Geography].[All],
[Geolocation].[Geography].[Geography Region]
),
[Geolocation].[Geography].CurrentMember.name,
BASC
) ON ROWS,
{[Measures].[Revenue], Measures.[%Parent]} ON COLUMNS
FROM [MyCube]
目前它返回以下内容。如何更改脚本以提供我想要的百分比?