I have
1) a date table (tblDates)
2) a table with forecasted and actual sales for every day (tblPrognosis). A column called 'Type' is used to distinguish between forecasted and actual sales
Using TOTALYTD formula I can calculate for a given date, what the total sales year to date is and compare it to the forecasted value:
YTDActuals:=TOTALYTD(SUM(tblPrognosis[Total]);tblDates[fldDate];tblPrognosis[Type]="Actuals";tblDates[fldDate] <= TODAY())
YTDForecast:=TOTALYTD(SUM(tblPrognosis[Total]);tblDates[fldDate];tblPrognosis[Type]="Forecast";tblDates[fldDate] <= TODAY())
I want to calculate the forecast for the rest of the year based on the specific date. A simplified example below, where I assume that I have forecasted a sales of 300/day:
Date Sales YTDActuals YTDForecast RestofYearForecast
1-jan 200 200 300 109.500
2-jan 350 550 600 109.200
3-jan 250 800 900 108.900
What formular can I use to calculate a running total for the rest of the year?
1) a date table (tblDates)
2) a table with forecasted and actual sales for every day (tblPrognosis). A column called 'Type' is used to distinguish between forecasted and actual sales
Using TOTALYTD formula I can calculate for a given date, what the total sales year to date is and compare it to the forecasted value:
YTDActuals:=TOTALYTD(SUM(tblPrognosis[Total]);tblDates[fldDate];tblPrognosis[Type]="Actuals";tblDates[fldDate] <= TODAY())
YTDForecast:=TOTALYTD(SUM(tblPrognosis[Total]);tblDates[fldDate];tblPrognosis[Type]="Forecast";tblDates[fldDate] <= TODAY())
I want to calculate the forecast for the rest of the year based on the specific date. A simplified example below, where I assume that I have forecasted a sales of 300/day:
Date Sales YTDActuals YTDForecast RestofYearForecast
1-jan 200 200 300 109.500
2-jan 350 550 600 109.200
3-jan 250 800 900 108.900
What formular can I use to calculate a running total for the rest of the year?