0

我有两个 MDX 查询,

select [Measures].[Goals A] on 0 from [FDC Star] where [Squad A].[Squad Key]

select [Measures].[Goals B] on 0 from [FDC Star] where [Squad B].[Squad Key]

我想将这两个值加在一起,但对 MDX 来说非常陌生,我不知道。

4

1 回答 1

1

您可以使用计算成员:

WITH
   MEMBER [Measures].[A] AS ([Measures].[Goals A], [Squad A].[Squad Key])
   MEMBER [Measures].[B] AS ([Measures].[Goals B], [Squad B].[Squad Key])
SELECT {[Measures].[A], [Measures].[B]} ON 0
FROM [FDC Star]
于 2013-01-11T12:56:55.163 回答