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
Anonymous
Not applicable

Forecasting future month using previous 3 month average

Hi All!
I am trying to create a measure for run rate. For the closed month, the run rate is [Actual Sales] - [SFDC Actual]. For months not closed yet, it would be the average for previous 3 months run rate. How to calculated the forecast run rate to the end of the year.

 

For example,

YearMonthRegionSFDC secured amountActualRun RateRun Rate 3M
2017OctoberA                             3,000          5,300       2,300             2,300
2017NovemberA                             4,000          5,500       1,500             3,800
2017DecemberA                             2,000          6,000       4,000             7,800
2018JanuaryA                             3,500          7,000       3,500             9,000
2018FebruaryA                             2,900          5,300       2,400             9,900
2018MarchA                             5,000          7,000       2,000             7,900
2018AprilA                             3,000          5,500       2,500             6,900
2018MayA                             3,200          6,000       2,800             7,300
2018JuneA                             3,500          5,000       1,500             6,800
2018JulyA                             2,400          5,000       2,600             6,900
2018AugustA                             4,800          6,000       1,200             5,300
2018SeptemberA                             2,900          5,000       2,100             5,900
2018OctoberA                             3,200          4,500       1,300             4,600
2018NovemberA                             3,000          5,400       2,400             5,800
2018DecemberA                             1,000               3,700
2019JanuaryA0               2,400
2019FebruaryA0  0
2019MarchA0  0
2019AprilA0  0
2019MayA0  0
2019JuneA0  0
2019JulyA0  0
2019AugustA0  0
2019SeptemberA0  0

 

 

Dec is not completed yet, I need the run rate for Dec to be 5800/3, and Jan run rate would be based on the result of Dec run rate, Nov run rate and Oct run rate(5800/3 + 2400+ 1300)/3, and so forth for the rest of the month in the fisical year. 

 

Appreciate the help!

 

Zongze 

1 ACCEPTED SOLUTION

Hi @Anonymous,

Based on my test, I am afraid you could not calculate the rest of the months due to you must have indeed data for your rest of month.

 

Regards,

Daniel He

Community Support Team _ Daniel He
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

6 REPLIES 6
v-danhe-msft
Employee
Employee

Hi @Anonymous,

From your description, you could refer to below stpes to sum previous month value:

Add an index column in query editor:

1.PNG

Create below measure:

Measure = CALCULATE(SUM(Table1[Run Rate]),FILTER(ALL('Table1'),'Table1'[Index]<=MAX('Table1'[Index])&&'Table1'[Index]>=MAX('Table1'[Index])-2))

Result:

1.PNG

But I could not figure out how could you want to calculate for 'Run Rate ' in 2018 December? Due to the value in Power BI is based on one whole column, you could not just calculate for different rows.

 

You could also download the pbix file to have a view.

 

Regards,

Daniel He

Community Support Team _ Daniel He
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 @v-danhe-msft for your reply!

 

I didn't just want to calculate run rate for December 2018, I am trying to calculate the run rate for all the months remaining in the date list, using the average of previous 3 months. For example, Jan 2019 run rate = (Oct 2018 + Nov 2018 + Dec 2018)/3, Feb 2019 = (Nov 2018 + Dec 2018+ Jan 2019)/3. I can only get as far as Dec 2018, is there any way I can calculate the rest of the months? 

 

 

 

Capture.PNG

Thank you. Really appreciate your help.

 

 

Hi @Anonymous,

Based on my test, I am afraid you could not calculate the rest of the months due to you must have indeed data for your rest of month.

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-danhe-msft,

 

I appreciate all of your help!

 

Zongze

Hello,

Have you found any solution that works for this situation?

I have the same request and I am struggling for 3 days already to make it work. I can just allocate the average of the last 3 months with data, to the rest of the future months, but what I actually need is a dynamic cascading of the 3 months average for future months. I think this is what you are also trying to achieve.

Thank you!

Hi @Anonymous,

It's pleasant that your problem has been solved, could you please mark my reply as Answered to close this topic?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the 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.