Forum Discussion
Anonymous
5 years agoNot applicable
cumulative sum with before date filter
Hello, I am having an issue that I can't seem to figur out. I need a cumulative SUM but only since a certain date. Calculated Column= CALCULATE(SUM(Column), ALL('Table'),'Table'[Date]<= ...
- 5 years ago
Hi, Anonymous
Thank you for your feedback.
In my opinion, Calculated Column and Calculated Measure works slightly differently.
I don't think we can use the same DAX for column creation and for visualization creation.
The below is for the table visualization.
Calculated Measure =IF( MAX('Table'[Date]) >= DATE(2021,1,1), BLANK(),CALCULATE( SUM('Table'[Cost]), FILTER( ALL('Table'), 'Table'[Date] <= MAX( 'Table'[Date]))))Did I answer your question? Mark my post as a solution!
Appreciate your Kudos!!
Jihwan_Kim
Super User
5 years agoHi, Anonymous
Please try to write your measure with Filter and && function.
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!