DAX code
Cumulative Total =
CALCULATE(
[Total Sales],
FILTER(ALL('Date'[Date]), 'Date'[Date] <= MAX('Date'[Date]))
)
Accumulates sales from the start of the data through the current date filter context.
Type your table and column names once. Every measure below updates.
Cumulative Total =
CALCULATE(
[Total Sales],
FILTER(ALL('Date'[Date]), 'Date'[Date] <= MAX('Date'[Date]))
)
Generate a Power BI date table
Requires a marked Date table; add a year filter inside FILTER if the total should restart each year.
Browse all 175 measures in the Power BI DAX Measures Library, or search the library for something similar to Cumulative Total.