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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
EJ125
Regular Visitor

Creating a Forecast using historical percentage spread

I'm trying to merge Current Year Actuals with what we are calling as a Total Year forecast number. I need to be able to take the Total Year Number we are calling - Actuals and use the historical spread of actuals to spread the forecast value out for the remainder of the year.

https://www.dropbox.com/s/4bc1de317sljk14/sample_data.pbix?dl=0 

 

The below gets me historically what each month represents as a percentage of the year 

 

 

 

hist_monthly_sales_percentage =  DIVIDE([Actual], CALCULATE([Actual], ALL(Date_tbl[Fiscal_Mo])))

 

 

 

 

This gets me current year sales

 

 

 

CY_Sales = calculate(Sum(sales_tbl[Amount]),Date_Tbl[Fiscal_Year]=Year(Today())

 

 

 

 

I then have a total fcst table that just gives the year total forecast not split out by month

 

 

 

Fcst = calculate(sum(Fcst_Tbl[Amount]))

 

 

 

 

The difference between [Fcst]-[CY_Sales] is what i need to spread across the remaining months of the year using the percentages calculated above. 

 

Any information would be greatly appreciated! 

 

Thanks

 

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @EJ125,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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