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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Forecasting future reductions using Dax

Hello! Good day!

 

I'm trying to forecast an annual 12% reduction using DAX. I tried to implement it but the reduction does not work and the same value is being repeated. I would appreciate if anyone can point me in the right direction.

 

My table strcuture is as follows.

 

RuneWendell_0-1649693753165.png

RuneWendell_8-1649694623031.png RuneWendell_9-1649694642882.png

 

Here is my Forecast query. I'm trying to stop the Year column from continuing when the value is less than 1 as well. 

 

Total = SUM('Measure'[Revenue])
Forecast = 

VAR reductionPercentage = 12/100
VAR forecast = CALCULATE ( [Total]-[Total]*reductionPercentage, 'Year'[Year] < MAX('Year'[Year] ))

RETURN
    IF (
        ISBLANK([Total]),
        IF(forecast < 1,
            BLANK(),
            forecast
        ),
        BLANK()
    )

 

And the incorrect result.

RuneWendell_6-1649694200260.png

 

I tried to do the same thing is Excel and it worked without any issues. 

 

RuneWendell_7-1649694264875.png

 

I have spent a lot of time trying to figure this out but unfortunately, I couldn't.

 

Can someone please help me?

 

Thank you in advance. 

 

 

1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi @Anonymous ,

 

The relationship between these tables makes no sense. Please delete it. Please try this Forecast measure as below.

Forecast =
VAR _reductionPercentage = 12 / 100
VAR _forecast =
    CALCULATE (
        [Total]
            * POWER (
                1 - _reductionPercentage,
                MAX ( 'Year'[Year] ) - MIN ( 'Measure'[Year] )
            )
    )
RETURN
    IF (
        SELECTEDVALUE ( 'Year'[Year] ) >= MAX ( 'Measure'[Year] ),
        FORMAT ( _forecast, "#.000" )
    )

Result:

vchenwuzmsft_0-1649923580269.png

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @Anonymous ,

 

The relationship between these tables makes no sense. Please delete it. Please try this Forecast measure as below.

Forecast =
VAR _reductionPercentage = 12 / 100
VAR _forecast =
    CALCULATE (
        [Total]
            * POWER (
                1 - _reductionPercentage,
                MAX ( 'Year'[Year] ) - MIN ( 'Measure'[Year] )
            )
    )
RETURN
    IF (
        SELECTEDVALUE ( 'Year'[Year] ) >= MAX ( 'Measure'[Year] ),
        FORMAT ( _forecast, "#.000" )
    )

Result:

vchenwuzmsft_0-1649923580269.png

Pbix in the end you can refer.

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thank you. This is exactly what I was looking for. I did a small modification to return the values only when greater than 1 to avoid all the unnecessary zeros like this

 

IF(SELECTEDVALUE('Year'[Year])>=MAX('company'[Year]),
   IF(_forecast > 1, _forecast, BLANK()), BLANK())

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors