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])))
selimovd
5 years agoMost Valuable Professional
Hey Anonymous ,
I think the TOTALMTD function can solve your problem:
TOTALMTD function (DAX) - DAX | Microsoft Docs
If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
Best regards
Denis
Blog: WhatTheFact.bi