Forum Discussion

prices35's avatar
prices35
New Member
9 years ago
Solved

Cumulative sum without date field

I am trying to create a Cumulative Sum field that adds up the "Every Chargeback" column.  I am looking at all data from 2011 though today and breaking that up by the "CHGBACK DAY OF MONTH".  The prob...
  • v-qiuyu-msft's avatar
    9 years ago

    Hi prices35,

     

    To calculate the cumulative total for the "Every Chargeback" column, you can create a measure like below:

     

    Cumulative Every Chargeback = CALCULATE(SUM('Date Chrgback'[Every Chargeback]),FILTER(ALL('Date Chrgback'),'Date Chrgback'[CHGBACK DAY OF MONTH]<=MAX('Date Chrgback'[CHGBACK DAY OF MONTH])))

     

     

    Best Regards,
    Qiuyun Yu