Forum Discussion
ValeriaBreve
Post Partisan
3 years agorunning total from a given date
Hello, I am trying to compute a running total for a forecast per year, but not from the beginning of the year, just from the first date when there are no more actuals. It is shown in a table per mo...
- 3 years ago
Hi ValeriaBreve one of possible implementation is following:
1. In Date table insert column with code
IF([Date]>=EOMONTH(TODAY(),-2), TRUE,FALSE)
2. Measure for forecast is simple sum,M_forecast = sum(Sheet10[Forecast])Adjust Sheet10 to your table name3. Measure for Expected:M_for_Expected =CALCULATE([M_forecast],'Date'[EOM and future]=TRUE)4. Finally, measure for YTD expected amountM_Expected_test =CALCULATE([M_forecast],DATESYTD('Date'[Date]),'Date'[EOM and future]=TRUE)End of Month below is column from Date column tableI hope this help
ValeriaBreve
Post Partisan
3 years agosome_bih Hello, it really looks quite simple...
But I can't figure it out.
I am adding a column with epected result, and another one with what I am getting today with my formula (so what I DON'T want).
And this should be by YEAR (so every following year the running total of the forecast is resetting and starting again from Jan)
Thanks!
Kind regards
Valeria
| Date | Actuals | Forecast | Expected Result | What I am getting today… |
| Jan-23 | 56 | 67 | ||
| Feb-23 | 26 | 30 | ||
| Mar-23 | 35 | 47 | ||
| Apr-23 | 26 | 29 | ||
| May-23 | 35 | 35 | 208 | |
| Jun-23 | 37 | 72 | 245 | |
| Jul-23 | 63 | 135 | 308 | |
| Aug-23 | 30 | 165 | 338 | |
| Sep-23 | 26 | 191 | 364 | |
| Oct-23 | 39 | 230 | 403 | |
| Nov-23 | 35 | 265 | 438 | |
| Dec-23 | 55 | 320 | 493 |