Forum Discussion
momedina
8 years agoFrequent Visitor
Power BI
I have a very simple table with two columns. Date, and Daily Events. The data comes a Big Data DB. The events are already aggregated per day but I want to run a cummulative total. The DAX CALCULATE f...
d_gosbell
Super User
6 years agoSince NumberOfDailyEvents is a column you will just need to provide an aggregate function like SUM() to tell the tabular engine how to aggregate the values.
eg.
CALCULATE (
SUM([NumberOfDailyEvents]),
FILTER (
ALL ( 'Date'[Date] ),
'Date'[Date] <= MAX ( 'Date'[Date] )
)
)