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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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