Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Cumulative sum shows blank values

I have a measure that sums all debit transactions: 

 

I also have a measure that is supposed to find cumulative sum based off of the first measure:

 

However, when there is no debit transaction in a given month, cumulative sum returns blank:

 

It is supposed to return cumulative sum of all debit transactions that happened before or on the last day in a given context 

  • danextian's avatar
    danextian
    1 year ago

    I set it to both and still using the same formula. Cumulative sum still returns correctly.

     

5 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    i have tried that. in that case, cumulative measure returns  0, which is still not i want. put it differently, i want it to carry forward the previous period's number when there is no transaction in the current period

  • Hi Anonymous 

     

    You're making a cumulative sum on the Date dimension instead of the whole calendar table so the ALL context is applied to that dimension only. Apply it to the whole of the table instead.

     

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    thank you for your reply. turns out that problem stems from data connection. it was set to both way. i needed it that way for another reason so needed to change the measure to include CROSSFILTER to change the direction for this case

    • danextian's avatar
      danextian
      Icon for Super User rankSuper User

      I set it to both and still using the same formula. Cumulative sum still returns correctly.