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
Mahesh0016
Super User
3 years agoAnonymous
Cumulative = CALCULATE (
COUNT ( 'Team'[DateRegistered]),
'Team'[DateRegistered] <= MAX ( 'Team'[DateRegistered])
)
Anonymous if it's not work please share your sample data and sample output in table format? Or a sample pbix after removing sensitive data.