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
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
v-xuding-msft
Community Support
Community Support

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.

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
v-xuding-msft
Community Support
Community Support

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.

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.

This works great. Thanks for your help 🙂

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.