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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
misterMethod
Frequent Visitor

dax to forecast based on same period 4 previous fiscal week

Need help wirting the dax equation to to farecast based on YoY values. 
I need to forecast the sales bases on same period last year ( custom fiscal calendar can't use time intellingence function) . 
Let say  we are in  fiscal week 10 and I need to forecast all values from week 11 on. 
Forecast sale :
                             current_week sale + average 4 YoY sales (starting week 11 last year  till week 7 last year) 
YoY = CY_Sale - PY_Sale
CY Sale = calculate(SUM('sales'[sales Amount]), fiscal_week <= Current_week)
PY_Sale = calculate(SUM('sale'[Sales Amounr]), 'date'[year] = prev_yr)



  

1 REPLY 1
v-yadongf-msft
Community Support
Community Support

Hi @misterMethod ,

 

Can you share some data screenshots to help us beteer solve your problem (remember to hide sensitive information)?

 

Thanks for your efforts & time in advance.

 

Best regards,

Yadong Fang

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.