Forum Discussion
Accumulate Column
- 2 years ago
Hi,
For calculating running totals I recommend cheking this article: Computing running totals in DAX - SQLBI
For your case here is an example:Column =VAR MaxDate = [Date] -- Saves the last visible dateRETURNCALCULATE (SUM('Table (39)'[Counter]), -- Computes sales amount'Table (39)'[Date] <= MaxDate, -- Where date is before the last visible dateALL ( 'Table (39)') -- Removes any other filters from Date)
This is for a column like you requested, but I recommend using a measure. Also I recommend adding calendar table to your model.
End result:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Hi,
For calculating running totals I recommend cheking this article: Computing running totals in DAX - SQLBI
For your case here is an example:
This is for a column like you requested, but I recommend using a measure. Also I recommend adding calendar table to your model.
End result:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/