【发布时间】:2019-08-13 15:22:00
【问题描述】:
我用两类数据之间的差异创建了一个新度量;但是当我把它放在一个矩阵中时,这个信息会出现两次。
我有一个这种格式的数据库:
Type Month Item Value
real 1 earnings 10
real 2 earnings 15
real 3 earnings 20
real 4 earnings 10
real 5 earnings 11
ppto 1 earnings 10
ppto 2 earnings 12
ppto 3 earnings 13
ppto 4 earnings 12
ppto 5 earnings 10
然后我创建了一个这样的度量:
Difference =
CALCULATE ( SUM ( BASE[Value] ); BASE[Type] = "real" )
- CALCULATE ( SUM ( BASE[Value] ); BASE[Type] = "ppto" )
问题是当我将新变量放入矩阵时,我得到了这个(重复两列差异):
但我希望将结果放在一列中。像这样:
我该如何解决这个问题?
【问题讨论】: