我正在尝试构建一个折线图来显示预测的累积总和。我有两张表,一张用于实际数据,一张用于预测,两者都链接到日期表。图表应显示截至本月和下个月的实际实际值的累计总和。到目前为止,我已经创建了以下措施来获取预测图表:
Chart_Forecast not cumulated =
VAR Actual_Hrs_not_cumulated = CALCULATE([Total Actuals],FILTER(IN_ACTUALS, IN_ACTUALS[Date] <= MAX(CurrentMonth[CurrentMonthParameter])))
VAR Forecast_not_cumulated = CALCULATE([Total Forecast],FILTER(IN_Forecast, IN_Forecast[Date] > MAX(CurrentMonth[CurrentMonthParameter])))
RETURN
IF((SELECTEDVALUE('LT_Reporting Calendar'[Date]) <= MAX(CurrentMonth[CurrentMonthParameter])),Actual_Hrs_not_cummulated, Forecast_not_Cumulated)
这个给了我非累积预测的折线图,它有效。
但是,一旦我想根据下面的度量在上面的度量上建立累积和,我只会得到当前月份的累积和,而未来会被省略。我想我有一个过滤器问题。我尝试了许多建立累积和的方法,总是得到相同的结果。
Chart_Forcast Cumulated =
CALCULATE(
[Chart_Forecast not cumulated],
FILTER(
ALL('LT_Reporting Calendar'[Date]),
'LT_Reporting Calendar'[Date] <= MAX ('LT_Reporting Calendar'[Date])
)
)
输入:
提前谢谢了


