下面的代码如何写更高效?非常感谢。
Total Operating Profit =
var _totOther =
CALCULATE(
[Actuals - Currency]
,dimAccount[FS Header Description] = "Total Other Operating(Inc)/Exp")
var _direct =
CALCULATE(
[Actuals - Currency]
,dimAccount[FS Header Description] = "Direct Overhead without Allocations")
var _Result = _totOther + _direct
RETURN _Result
试试这个:
Total Operating Profit =
[Actuals - Currency](
dimAccount[FS Header Description] IN {"Total Other Operating(Inc)/Exp", "Direct Overhead without Allocations"})