Forum Discussion

hackfifi's avatar
hackfifi
Helper V
3 years ago
Solved

DAX Help to For Drawdown

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)
        )
)
 
  • I don't pretend to understand the definition of drawdown (despite having read the article multiple times) but here is a solution proposal.

     

     

3 Replies

    • hackfifi's avatar
      hackfifi
      Helper V

      lbendlin  - The expected result is the "Drawdown" row below

      IDWIN STATUS2017201820192020202120222023202420252026
      P01NO WIN    $5$10    
      P02NO WIN $5        
      P03NO WIN    $5$5    
      P04NO WIN $5        
      P05NO WIN $2$2       
      P06NO WIN $3$3       
      P07NO WIN    $5$5    
      P08NO WIN$5$5        
      P09NO WIN $5$10       
      P10NO WIN    $5$10    
      P11NO WIN   $5      
      P12WIN      $10$5  
      P13NO WIN     $5$5   
      P14WIN      $5$5  
      P15NO WIN      $5$5  
      P16WIN   $6$10     
      P17NO WIN     $5$10   
      P18WIN   $10      

       

      NO WIN$5$25$15$5$20$40$20$5$0$0
      WIN$0$0$0$16$10$0$15$10$0$0
                 
                 
      TOTAL CUMULATIVE$5$30$45$66$96$136$171$186$186$186
      DRAWDOWN$181$156$141$152$142$102$97$102$102$102




      • lbendlin's avatar
        lbendlin
        Super User

        I don't pretend to understand the definition of drawdown (despite having read the article multiple times) but here is a solution proposal.