← DAX CasesTime and periodsCase 6 of 8
The monthly running total that starts again from zero each year
How can you accumulate revenue from the first month of each year without using a date function?
Row followedJan'25
Our strategy
You want a running total that starts over at zero every January, without going through a date function. The chosen approach handles the months as a plain ordered list, cut into pieces by year. It then adds up the revenue in a window that opens at the start of each piece.
Click a step, and the formula lines that carry it out light up on the board.
Another way to get there
You could write CALCULATE( [Revenue], DATESYTD( Calendar[Date] ) ). Tested on the model, this variant returns the same running totals, month after month. We chose WINDOW to show that a running total can also be built without dates, from an order and a split.