Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mixue100
Frequent Visitor

Calculating future months using latest actuals based on expected growth

Hi 

 

I am stuck with this and would need help on the below. 

 

MonthYTD ActualsExpected growth for next mont, based on actuals from Current monthExpected actuals (forecasted actuals)Actuals or ForecastSource
Jan-22                     5005%               525         500Actuals
Feb-22                  1,0002%            1,020      1,000Actuals
Mar-22                  1,2006%            1,272      1,200Actuals
Apr-22                     60010%               660         600Actuals
May-22                     8000%               800         800Actuals
Jun-22                     900-5%               855         900Actuals
Jul-22                     200-3%               194         200Actuals
Aug-22                     10010%               110         100Actuals
Sep-22                     3000%               300         300Actuals
Oct-22 Not available yet -5%               285         285Forecast
Nov-22 Not available yet 6%               302         302forecast
Dec-22 Not available yet 10%               332         332forecast
Jan-23 Not available yet 0%               332         332Forecast

 

 I have actuals until September. I would to have a measure that helps me to derive at the column in blue font - that is having YTD actuals + forecasted. 

 

E.g. October's expected figure (blue) is based on September's actuals + growth of -5 %

i.e. actuals of 300 from september minus 5 % = 285 

 

November's expected figures (blue) is based on october's expected figures + growth of +6%

expected actuals of october (285) plus growth of 6% gives me expected november figures of 302. 

 

 

Appreciate your help! 

 

1 ACCEPTED SOLUTION
mangaus1111
Solution Sage
Solution Sage

Hi @mixue100 ,

 

this is the measure for the forecasts. Please hit the thumbs up & mark it as a solution if it helps you. Thanks.

 

Forecasts =
VAR LastActualMonth =
            CALCULATE (
                MAX ( 'Table'[Month] ),
                ALL ( 'Table' ),
                'Table'[YTD Actuals] <> BLANK ()
            )
VAR LastActual =
CALCULATE (
                SUM ( 'Table'[YTD Actuals] ),
                ALL ( 'Table' ),
                'Table'[Month] = LastActualMonth
            )

VAR CurrentMonth = MAX('Table'[Month])

VAR Product_Growth =
CALCULATE(
 PRODUCTX(
        FILTER('Table',
               'Table'[YTD Actuals]=BLANK() && 'Table'[Month] <= CurrentMonth
              ),
        'Table'[Expected growth] + 1
    ),
    ALL()
)
RETURN
Product_Growth * LastActual

 

 

And here there is the link to the pbi file:

 

https://1drv.ms/u/s!Aj45jbu0mDVJiGdkR76ccaoHdFht?e=rAmtHb

View solution in original post

2 REPLIES 2
mangaus1111
Solution Sage
Solution Sage

Hi @mixue100 ,

 

this is the measure for the forecasts. Please hit the thumbs up & mark it as a solution if it helps you. Thanks.

 

Forecasts =
VAR LastActualMonth =
            CALCULATE (
                MAX ( 'Table'[Month] ),
                ALL ( 'Table' ),
                'Table'[YTD Actuals] <> BLANK ()
            )
VAR LastActual =
CALCULATE (
                SUM ( 'Table'[YTD Actuals] ),
                ALL ( 'Table' ),
                'Table'[Month] = LastActualMonth
            )

VAR CurrentMonth = MAX('Table'[Month])

VAR Product_Growth =
CALCULATE(
 PRODUCTX(
        FILTER('Table',
               'Table'[YTD Actuals]=BLANK() && 'Table'[Month] <= CurrentMonth
              ),
        'Table'[Expected growth] + 1
    ),
    ALL()
)
RETURN
Product_Growth * LastActual

 

 

And here there is the link to the pbi file:

 

https://1drv.ms/u/s!Aj45jbu0mDVJiGdkR76ccaoHdFht?e=rAmtHb

v-jingzhang
Community Support
Community Support

Hi @mixue100 

 

If the expected growth rate is a fixed value, this is possible. You can try the following measure. For example, the growth rate is 10%. 

vjingzhang_0-1665568805942.png

 

If the growth rate is not fixed, just like your sample, I cannot think of a solution yet. The difficulty is at the highlighted _forecast part. The difficulty is that in DAX, the measure is evaluated on every row individually. It cannot get the measure value from its previous row. 

 

Best Regards,
Community Support Team _ Jing

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.