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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Mihai_Iso
Helper II
Helper II

How to calculate forecast cumulative S-curve shape?

Hi,

 

in power bi, we have a Table, budget cumulative,actual cumulative,but we do not have forecasts - must be calculated; how to calculate with DAX forecast cumulative S-curve shape ? do you have any idea? a sample...

(last actual cumulative value = first forecast cumulative value; last forecast cumulative value = last budget cumulative value)

 

Thank you!

4 REPLIES 4
amitchandak
Super User
Super User

@Mihai_Iso ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,

for this simple example, we need to calculate the cumulative forecasts,based on last cumulative actual value 11 and last cumulative budget value 50.So,cumulative forecast must start from date 29/01/20223, and has 11 value,and finally must end on 26/03/2023, having the value 50. And cumulative forecast (or cumulative remaining values) to have an S-curve shape.

We do have,for example:

Cumulative Actual =

IF (

    NOT ISBLANK ( MAX ( 'Table'[actual] ) ),

    CALCULATE (

        SUM ( 'Table'[actual] ),

        FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Date] <= MAX ( 'Table'[Date] ) )

    )

)

 

And

 

Cumulative Budget =

CALCULATE (

    SUM ( 'Table'[budget] ),

    FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Date] <= MAX ( 'Table'[Date] ) )

)

How can I find a suitable DAX formula for cumulative remaining, to meet the above requirements?

Mihai_Iso_1-1679926484449.png

 

 

Mihai_Iso_0-1679926275054.png

 

a sample how to look forecast cumulative line shape,more or less...

 

Mihai_Iso_0-1680012287648.png

 

@Mihai_Iso , Try like

 

CALCULATE (

SUMX( 'Table', if(isblank('Table'[actual] ) , 'Table'[budget] ,'Table'[actual]  )) ,

FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Date] <= MAX ( 'Table'[Date] ) )

)

 

refer if needed

How to get a single continuous line for Actual and Target without any break: https://youtu.be/41yhZz2pNTI

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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