写个计算成员,看看截图是不是你想要的:
WITH MEMBER [Measures].[Median Sales Amount]
AS
MEDIAN
(
[Customer].[Customer Geography].CurrentMember.Children,
[Measures].[Internet Sales Amount]
),FORMAT_STRING="$#,##0.00"
SELECT
{
[Measures].[Internet Sales Amount],
[Measures].[Median Sales Amount]
} ON 0,
NON EMPTY
{
[Customer].[Customer Geography].[State-Province].Members
} ON 1
FROM [Adventure Works]
WHERE [Date].[Calendar Year].&[2007]
1 个回复
天桥下的郑成功 - Hadoop大数据开发工程师、数仓架构师、熟悉数据仓库设计、Hadoop、Spark、HBase、Hive、SSIS等开发 2015-09-01 回答
赞同来自:
WITH MEMBER [Measures].[Median Sales Amount]
AS
MEDIAN
(
[Customer].[Customer Geography].CurrentMember.Children,
[Measures].[Internet Sales Amount]
),FORMAT_STRING="$#,##0.00"
SELECT
{
[Measures].[Internet Sales Amount],
[Measures].[Median Sales Amount]
} ON 0,
NON EMPTY
{
[Customer].[Customer Geography].[State-Province].Members
} ON 1
FROM [Adventure Works]
WHERE [Date].[Calendar Year].&[2007]