Forum Discussion
Anonymous
5 years agoNot applicable
Cumulative sum Column
Hello Everyone! I have a table like this, with the sales each week, i want to calculate a cumulative sum for each month. The table has sales for each month: I have the table like this: ...
- 5 years ago
Anonymous
you can create a column
Column = CALCULATE(sum(Sheet6[ Sales Week]),FILTER(Sheet6,Sheet6[Period]=EARLIER(Sheet6[Period])&&Sheet6[Week]<=EARLIER(Sheet6[Week])))please see the attachment below
- 5 years ago
Anonymous
please try this
Column = CALCULATE(sum(Sheet6[ Sales Week]),FILTER(Sheet6,Sheet6[Period]=EARLIER(Sheet6[Period])&&Sheet6[Week]<=EARLIER(Sheet6[Week])&&'Sheet6'[Product]=EARLIER(Sheet6[Product])))
ryan_mayu
5 years agoSuper User
Anonymous
you can create a column
Column = CALCULATE(sum(Sheet6[ Sales Week]),FILTER(Sheet6,Sheet6[Period]=EARLIER(Sheet6[Period])&&Sheet6[Week]<=EARLIER(Sheet6[Week])))
please see the attachment below
Anonymous
5 years agoNot applicable
Hello ryan_mayu thanks for the answer
The thing is actually that my table looks like this:
and the result should be:
The cumulative should calculate for each product
Thanks!
- ryan_mayu5 years agoSuper User
Anonymous
please try this
Column = CALCULATE(sum(Sheet6[ Sales Week]),FILTER(Sheet6,Sheet6[Period]=EARLIER(Sheet6[Period])&&Sheet6[Week]<=EARLIER(Sheet6[Week])&&'Sheet6'[Product]=EARLIER(Sheet6[Product])))