Forum Discussion
How to calculate future months
- 9 years ago
Anonymous
Based on your description, you want to calculate total from current row all the way up to Dec 2017 for all dates later than today. It's like a reverse running total. Right?
You need to use the Total from Today() to End Of Year, minus the running total from Today() to End Of Year. Please refer to measure below:
Forecast = IF ( MAX ( 'Fact'[Date] ) >= TODAY (), CALCULATE ( SUM ( 'Fact'[Amount] ), DATESBETWEEN ( 'Fact'[Date], TODAY (), LASTDATE ( ALL ( 'Fact'[Date] ) ) ) ) - CALCULATE ( SUM ( 'Fact'[Amount] ), DATESBETWEEN ( 'Fact'[Date], TODAY (), LASTDATE ( 'Fact'[Date] ) ) ), BLANK () )Regards,
bump
Hi Anonymous,
I made an example and assume you are using the Date table linked to the OPEX_Forecast and add this formula:
Future_Month_forecast = CALCULATE ( CALCULATE(SUM(OPEX_Forecast[Forecast]),OPEX_Forecast[Date]>=TODAY()) )
You can see the result below, by month and in total in a card visual.
Regards,
MFelix
- Jotten8 years agoFrequent Visitor
This formula does almost what I want. However, I would like it to calculate whole months. For example I want to take actuals from Jan-May and then add the forecast from June -Dec. This formula is only calculating only couple remaining days in June rather than all of June. I am hoping this is just a simple fix.
- Anonymous5 years agoNot applicable
Hi Jotten, how did you resolve this?? I have the same problem statement.