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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
hackfifi
Helper V
Helper V

Drawdown Curve

Good Day
I am trying to calculate the "Drawdown" row as per the below data table example.
As you can see the TOTAL CUMATIVE Formula used gives the Cumulative by Year resulting in a value of $186
 
I am trying to Acheive the "DrawDown" calculation based on WIN(+) and NO WIN(-) by year
Hence starting from $186 (Total Budget) - "NO WIN" + "WIN" 

So in the below example:
=186-[5+0]-[25+0]-[15+0]-[5+16]-[15+10]-[30+0]-[25+15]-[15+10]
 
Hence, i need support to develop the above measure Cumulative Drawdown by Year
 
Thanks!
 
Total_Cumulative_Overall =
CALCULATE(
    [Budget],
    FILTER(
        ALLSELECTED('_Calendar'),
        ISONORAFTER(_Calendar[Date], MAX(_Calendar[Date]),DESC)
        )
)

 

 

PowerBi Query - Drawdown.JPG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @hackfifi ,

 

My steps are as follows:

1. Make a copy in the PowerQuery Eidtor and name it Table1:

2.Replace Values for column 2017-2026:

vcgaomsft_0-1662711197593.png

3.Unpivot column for column 2017-2026:

vcgaomsft_1-1662711384729.png

4.Enter data-> Table2:

vcgaomsft_2-1662711476339.png

5.New measures:

Burget = SUM('Table1'[Value])
Total_Cumulative_Overall = 
CALCULATE (
    [Burget],
    FILTER ( ALL ( 'Table1' ), 'Table1'[Year] <= MAX ( 'Table1'[Year] ) )
)
win = 
CALCULATE (
    SUM ( 'Table1'[Value] ),
    FILTER (
        ALL( 'Table1' ),
        'Table1'[WIN STATUS] = "WIN"
            && 'Table1'[Year] <= MAX ( 'Table1'[Year] )
    )
)
no win = 
CALCULATE (
    SUM ( 'Table1'[Value] ),
    FILTER (
        ALL( 'Table1' ),
        'Table1'[WIN STATUS] = "NO WIN"
            && 'Table1'[Year] <= MAX ( 'Table1'[Year] )
    )
)
Drawdown = 
VAR _all = CALCULATE([Total_Cumulative_Overall],ALL())
VAR _result = _all - [no win] + [win]
RETURN
_result
Measure = 
SWITCH(
    SELECTEDVALUE('Table2'[Colunm]),
    "Total_Cumulative_Overall",[Total_Cumulative_Overall],
    "Drawdown",[Drawdown]
)

vcgaomsft_3-1662711711587.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @hackfifi ,

 

My steps are as follows:

1. Make a copy in the PowerQuery Eidtor and name it Table1:

2.Replace Values for column 2017-2026:

vcgaomsft_0-1662711197593.png

3.Unpivot column for column 2017-2026:

vcgaomsft_1-1662711384729.png

4.Enter data-> Table2:

vcgaomsft_2-1662711476339.png

5.New measures:

Burget = SUM('Table1'[Value])
Total_Cumulative_Overall = 
CALCULATE (
    [Burget],
    FILTER ( ALL ( 'Table1' ), 'Table1'[Year] <= MAX ( 'Table1'[Year] ) )
)
win = 
CALCULATE (
    SUM ( 'Table1'[Value] ),
    FILTER (
        ALL( 'Table1' ),
        'Table1'[WIN STATUS] = "WIN"
            && 'Table1'[Year] <= MAX ( 'Table1'[Year] )
    )
)
no win = 
CALCULATE (
    SUM ( 'Table1'[Value] ),
    FILTER (
        ALL( 'Table1' ),
        'Table1'[WIN STATUS] = "NO WIN"
            && 'Table1'[Year] <= MAX ( 'Table1'[Year] )
    )
)
Drawdown = 
VAR _all = CALCULATE([Total_Cumulative_Overall],ALL())
VAR _result = _all - [no win] + [win]
RETURN
_result
Measure = 
SWITCH(
    SELECTEDVALUE('Table2'[Colunm]),
    "Total_Cumulative_Overall",[Total_Cumulative_Overall],
    "Drawdown",[Drawdown]
)

vcgaomsft_3-1662711711587.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.