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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.