选择多个月份和/或年份会发生什么情况
Image 1: What happens when you select multiple months and/or years
错误消息
措施:
Actuals less Forecast =
VAR Max_Date =
MAX ( 'DateTable'[Date] )
VAR Month_End =
EOMONTH ( TODAY (), 0 )
VAR SupplierProjMinusForecast =
[Supplier Projected] - [Supplier Forecast]
VAR Year_Row =
VALUES ( 'DateTable'[Year] )
VAR Year_Today =
YEAR ( TODAY () )
VAR Month_Row =
VALUES ( 'DateTable'[MonthNumber] )
VAR Month_Today =
MONTH ( TODAY () )
VAR Date_Compare =
IF(
OR(
Year_Row < Year_Today,
AND(
Year_Row = Year_Today,
Month_Row <= Month_Today
)
),
SupplierProjMinusForecast,
IF(
Max_Date <= Month_End,
SupplierProjMinusForecast
)
)
Return Date_Compare
选择多个月后,此行似乎引起了所有问题。
VAR Month_Row =
VALUES ( 'DateTable'[MonthNumber] )
帮助?