Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi All,
I have calculated a forecast based on historic data for the last 6 years using the below and dividing it by total years. This works fine
I now want to combine this with the actuals so the forecast data only begins where the actuals end and I am having problems with the following DAX
Solved! Go to Solution.
@PJHos , do not use .date. Mark you calendar table as date table, that option will go away
Forecasting - Cumulative Forecast =
VAR StoressOpenedLY = CALCULATE(
[Total No Of Storess], DATEADD('Stores Attributes Calender'[Date], -1, YEAR) )
and
VAR ForecastTotal = CALCULATE([Forecasting - Cumulative Forecast], KEEPFILTERS( 'Store Attributes Calender'[Date]> [Forecasting - Last Store Opening Date]))
also can explain need of KEEPFILTERS( 'Store Attributes Calender'[Date]> [Forecasting - Last Store Opening Date])
@PJHos , do not use .date. Mark you calendar table as date table, that option will go away
Forecasting - Cumulative Forecast =
VAR StoressOpenedLY = CALCULATE(
[Total No Of Storess], DATEADD('Stores Attributes Calender'[Date], -1, YEAR) )
and
VAR ForecastTotal = CALCULATE([Forecasting - Cumulative Forecast], KEEPFILTERS( 'Store Attributes Calender'[Date]> [Forecasting - Last Store Opening Date]))
also can explain need of KEEPFILTERS( 'Store Attributes Calender'[Date]> [Forecasting - Last Store Opening Date])
Hi Amit
Thank you very much!! It worked
also can explain need of KEEPFILTERS( 'Store Attributes Calender'[Date]> [Forecasting - Last Store Opening Date])
This was so i can have actuals and forecast totals in 1 column
Thank you again, marked as answered😀
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 21 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 58 | |
| 55 | |
| 43 | |
| 30 | |
| 24 |