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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Forecast remaining days of current mth with average of current month available data

Hi All

 

I have been struggling this for days.

I wish to forecast the value of a parameter for the remaining days of current month based on average obtained from current month available data.

Using below example:

I have data for two products and their respective available data:

  • "0310S0" - data till 25th Sep
  • "0110S0" - data till 27th Sept

I wish to forecast the the value of both products from their last available data date till end of the month based on their average calculated:

"0310S0" - average calculated from 1st - 25th Sep

"0110S0" - average calculated from 1st - 27th Sep

image.png

A desired output would be something like this, where by i would be able to see the total of the available data and the forecasted total:

image.png

 

Here is the link to the pbix file: sample 

 

Thank you in advance!

1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

14 REPLIES 14
rajkumar2211
Regular Visitor

Hi could you please share the dax formula.

lbendlin
Super User
Super User

How does this approach help you at the beginning of the month? Wouldn't a sliding window be better (let's say use a mix of the last 30 days and the same period last year for forecasting)?

Anonymous
Not applicable

@lbendlin that will do as well, meaning the daily average measure will obtain the period from the slicer? and this offer the flexibility to user how much data from the past to be used for calculation. 

 

i like to avoid the same period last year for forecasting.

Have a read through this approach and let me know if that is something you want to implement (at least from a general idea perspective)

 

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Rolling-12-Month-Average-result-used-to-Forec...

 

Anonymous
Not applicable

Sorry the solution need not be exactly the same as the desired output.

The forecasted result can be on a separate table, as long as its able to give me the total.

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi, Could you please share the Dax formula used to calculate this.

Hi,

 

Download the file from the link i have shared above.  The link is active - i just checked.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

@Ashish_Mathur thanks!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

@Ashish_Mathur I noticed the Forecast Quantity Column row total is incorrect. Is there any way to correct this. Thanks

What is incorrect?  Be very clear.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Ashish_Mathur 

 

I was referring to this:

error.jpg

 

Thanks for your help!

Hi,

Edit the Dates remaining formula to this

Days remaining = EOMONTH([Date till which sale was recorded],0)-[Date till which sale was recorded]

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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