Forum Discussion
Anonymous
3 years agoNot applicable
Cumulative counts on line/bar graphs
Hi all, I have a measure which I use to count cumulative registrations - it's simple and it has mostly worked: Cumulative = CALCULATE ( COUNT ( 'Team'[DateRegistered]), FILTER ( ...
- 3 years ago
Anonymous You will have do the calc at the year to have running total for each year. your measaure could be like below
Vol running total in Year =CALCULATE(SUM('Table'[Vol]),FILTER(ALLSELECTED('Table'[Date].[Year]),ISONORAFTER('Table'[Date].[Year], MAX('Table'[Date].[Year]), DESC)))here is the expected output - 3 years ago
Anonymous i am sharing updated solution, it will work on months and year both. have taken inspiration from below
Computing running totals in DAX - SQLBI
Anonymous
3 years agoNot applicable
negi007 Thank you again for this solution, it works perfectly on years - but when I need to use months and years (as if I just use month the count doesn't work) I am struggling with what changes I need to make? Is it an adjustment to this code, or an entirely new approach that is required?
negi007
Community Champion
3 years agoAnonymous i am sharing updated solution, it will work on months and year both. have taken inspiration from below
Computing running totals in DAX - SQLBI
- Anonymous3 years agoNot applicable
That looks great - thank you!