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])))
Anonymous
5 years agoNot applicable
Hi Anonymous ,
I have a way to achieve your need . Calculate the cumulative amount of different products each month.
Cumulative Sales = CALCULATE(SUM('Table'[Week Sales]),FILTER('Table','Table'[Product]=EARLIER('Table'[Product]) && 'Table'[Week Num]<=EARLIER('Table'[Week Num])))
'Table'[Product]=EARLIER('Table'[Product]) to make sure the product is same .
The effect is as shown:
Notice: the Data type of [Week Sales] must be “number” not “text”
Best Regards
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.