Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Create table or matrix to test discount sensitivity

Hi Everyone,   I am looking to set up a table that sums up profit dollars against transaction discount, given discount values i set, to see at what point the discount rate becomes unsustainable.  ...
  • v-alq-msft's avatar
    6 years ago

    Hi, Anonymous 

     

    Based on your description, you may create a measure as follows.

     

    SumMargin = 
    var _currentamt = SUM(DiscAmt[Discount amt])
    
    return
    
    SUMX(
               FILTER(
                     ALL(TransactionData),
                     TransactionData[Discount rate]<=_currentamt&&
                     TransactionData[Attach Flag] = "Y"
               ),
               CALCULATE(SUM(TransactionData[gross margin $]))
    
    )

     

     

    Result:

     

    Best Regards

    Allan

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.