cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cmgovind
Frequent Visitor

Calculate Forecast with Cumulative Totals and Circular Dependency

Hi Experts,

 

I am trying to forecast with very few data points. So I need to go the Cumulative Totals way, the way we do in excel.

Created a sample for you below:

MonthActual SalesCumulative SalesDays in MonthCumulative Days in MonthForecast SalesExplanationResult Column
Jan 20191201203131120 120
Feb 2019972172859217 217
Mar 20191353523190352 352
Apr 20198243430120434 434
May 2019 43431151(434/120)*151IF Col 'B' Isblank then Max(Cumulative Sales)/Cumulative Days of Last Non Blank Actual Total Month * Cumulative Days of Current Blank Month546.1
Jun 2019 43430181(434/120)*181 654.6
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Calculate Forecast with Cumulative Totals and Circular Dependency

Hi @cmgovind ,

I created a calculated column to implement it that you can reference.

Forecast Sales = 
var max_days = CALCULATE(MAX('Table'[Cumulative Days in Month]),FILTER('Table','Table'[Actual Sales]<>BLANK()))
return
IF('Table'[Actual Sales] = BLANK(),DIVIDE(MAX('Table'[Cumulative Sales]),max_days) * 'Table'[Cumulative Days in Month],'Table'[Cumulative Sales])

1.PNG

I attached my sample that you can download.

 

Best Regards,

Xue Ding

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

2 REPLIES 2
Community Support
Community Support

Re: Calculate Forecast with Cumulative Totals and Circular Dependency

Hi @cmgovind ,

I created a calculated column to implement it that you can reference.

Forecast Sales = 
var max_days = CALCULATE(MAX('Table'[Cumulative Days in Month]),FILTER('Table','Table'[Actual Sales]<>BLANK()))
return
IF('Table'[Actual Sales] = BLANK(),DIVIDE(MAX('Table'[Cumulative Sales]),max_days) * 'Table'[Cumulative Days in Month],'Table'[Cumulative Sales])

1.PNG

I attached my sample that you can download.

 

Best Regards,

Xue Ding

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

cmgovind
Frequent Visitor

Re: Calculate Forecast with Cumulative Totals and Circular Dependency

This works great. Thanks for your help 🙂

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors