Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I need to plot cumulative forecasted values - when I have these forecasted values available in my table
otherwise I take a 3Month running average of the actual values
Here are sample tables;
| Actual Costs | Forecasted Costs | |||||
| Product | Date | Actual | Product | Date | Forecast | |
| A | 2018-11-01 | $ 100.00 | A | 2019-02-01 | $ 120.00 | |
| A | 2018-12-01 | $ 110.00 | A | 2019-03-01 | $ 120.00 | |
| A | 2019-01-01 | $ 120.00 | A | 2019-04-01 | $ 120.00 | |
| B | 2018-12-01 | $ 200.00 | C | 2019-02-01 | $ 200.00 | |
| B | 2019-01-01 | $ 210.00 | C | 2019-03-01 | $ 200.00 | |
| C | 2018-12-01 | $ 200.00 | C | 2019-04-01 | $ 210.00 | |
| C | 2019-01-01 | $ 210.00 |
|
I created a column in my Product table that tells me if a Product has forecasted values.
Solved! Go to Solution.
Hi @steph_io ,
One sample for your reference.
1. Create a date table and create relstionship between it and the actual table.
Table = CALENDARAUTO()
2. To create a calculated column as below.
Column =
VAR _result =
LOOKUPVALUE (
'Forecasted Costs'[Forecast],
'Forecasted Costs'[Date], DATEADD ( 'Table'[Date], 3, MONTH ),
'Forecasted Costs'[Product ], 'Actual Costs'[Product]
)
VAR _rows =
CALCULATE (
COUNTROWS ( 'Actual Costs' ),
FILTER (
'Actual Costs',
'Actual Costs'[Date] <= EARLIER ( 'Actual Costs'[Date] )
&& 'Actual Costs'[Forecastexists] = FALSE ()
)
)
RETURN
IF (
ISBLANK ( _result ),
CALCULATE (
SUM ( 'Actual Costs'[Actual] ),
FILTER (
'Actual Costs',
'Actual Costs'[Date] <= EARLIER ( 'Actual Costs'[Date] )
&& 'Actual Costs'[Forecastexists] = FALSE ()
)
) / _rows,
_result
)
Please check the pbix as attached.
Regards,
Frank
Hi @steph_io ,
Does that make sense? If so, kindly mark my answer as the solution to close the case please. Thanks in advance.
Regards,
Frank
Hi @steph_io ,
One sample for your reference.
1. Create a date table and create relstionship between it and the actual table.
Table = CALENDARAUTO()
2. To create a calculated column as below.
Column =
VAR _result =
LOOKUPVALUE (
'Forecasted Costs'[Forecast],
'Forecasted Costs'[Date], DATEADD ( 'Table'[Date], 3, MONTH ),
'Forecasted Costs'[Product ], 'Actual Costs'[Product]
)
VAR _rows =
CALCULATE (
COUNTROWS ( 'Actual Costs' ),
FILTER (
'Actual Costs',
'Actual Costs'[Date] <= EARLIER ( 'Actual Costs'[Date] )
&& 'Actual Costs'[Forecastexists] = FALSE ()
)
)
RETURN
IF (
ISBLANK ( _result ),
CALCULATE (
SUM ( 'Actual Costs'[Actual] ),
FILTER (
'Actual Costs',
'Actual Costs'[Date] <= EARLIER ( 'Actual Costs'[Date] )
&& 'Actual Costs'[Forecastexists] = FALSE ()
)
) / _rows,
_result
)
Please check the pbix as attached.
Regards,
Frank
Hi @steph_io ,
Does that make sense? If so, kindly mark my answer as the solution to close the case please. Thanks in advance.
Regards,
Frank
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!