Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个 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 来说非常陌生,我不知道。
您可以使用计算成员:
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]