【发布时间】:2014-06-16 04:00:40
【问题描述】:
我想用“不同的定义”计算相同度量的差异 这是我尝试过的,但它不起作用:
WITH MEMBER [Measures].[Births] AS
'[Measures].[type], [dimType].[TypeL].[Births]'
MEMBER [Measures].[Deaths] AS
'[Measures].[type], [dimType].[TypeL].[Deaths]'
MEMBER [Measures].[Population_Growth] AS
'[Measures].[Births] - [Measures].[Deaths]'
SELECT [Measures].[Population_Growth] ON COLUMNS,
[dimTime].[year] ON ROWS FROM [Population]
运行此查询时,我每年都会得到 Population_Growth = 0。 我是 MDX 新手,不知道自己做错了什么?
【问题讨论】: