March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
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!
@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.
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?
a sample how to look forecast cumulative line shape,more or less...
@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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
User | Count |
---|---|
107 | |
91 | |
88 | |
75 | |
44 |
User | Count |
---|---|
199 | |
163 | |
94 | |
81 | |
65 |