编写一个计算列,该列可找到前一个日期,然后计算当前值与前一个日期的值之差。
IncrDemand =
VAR PrevDate = CALCULATE(LASTDATE(Demand[filedate]),
ALL(Demand),
Demand[filedate] < EARLIER(Demand[filedate]))
RETURN Demand[CurModDem] - LOOKUPVALUE(Demand[CurModDem], Demand[filedate], PrevDate)
(假设您的表名是Demand
。)
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句