Forum Discussion
Cumulative Amounts
- 10 years ago
You can do something like this YTD calculation. If you need it to cover different custom calendars, jsut add a custom calendar.
https://blog.crossjoin.co.uk/2009/12/01/first-steps-in-dax-year-to-date/
The measure provided by KGrice should be OK. You can also try to create a MonthNum column and a cumulative year column.
MonthNum = MONTH ( LEFT ( Table1[month], 3 ) & "/1" )
cumulative year =
SUMX (
FILTER ( Table1, Table1[MonthNum] <= EARLIER ( Table1[MonthNum] ) ),
Table1[year]
)Best Regards,
Herbert
Many thanks for your input.
I tried out the formula on my data/table. The formula seems to indeed add values for the respective month, however does not add them to the previous ones. So, for July, it yields the sum of all values in July. For August, it yields all values in August, but does not include July ones.
- kcantor10 years agoCommunity Champion
You can do something like this YTD calculation. If you need it to cover different custom calendars, jsut add a custom calendar.
https://blog.crossjoin.co.uk/2009/12/01/first-steps-in-dax-year-to-date/