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

extrapolation formula dax issue

Hi all,

 

I am looking fot forcasting in the future, however I am getting results in the past.

 

Jobs Kosten 30D = IF ( ISBLANK( [TotalJobKosten]);
BLANK();
AVERAGEX(
    DATESINPERIOD(
    Dim_Date[DateKey];
    LASTDATE(Dim_Date[DateKey]);
    -30;DAY); 
    [TotalJobKosten]))
Jobs Forecast = IF ( ISBLANK( [TotalJobKosten]); CALCULATE([Jobs Kosten 30D]; SAMEPERIODLASTYEAR(Dim_Date[DateKey])
  
      ); BLANK())

 

The result in the chart what I get is:

the dark blue in the past is not what i wantthe dark blue in the past is not what i want

 

Can anyone help?

 

Kind regards,

Ezz

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

As checked the formula of your measure "Jobs Forecast", it will return the data of last year not future... The Forecasting feature is available for the line chart, you can select the related line chart and set the forecast options in "Analytics" pane just like below screen shot.

ForecastForecast

You can refer the contents in following links for more details.

Forecasting in PowerBI

How to forecast sales with Power BI

Best Regards

Rena

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