Forum Discussion
wiktorius1984
6 years agoRegular Visitor
Add Sum all the previous elements to a date
Hello, I would like the sum of hours for a month with previous months.
my table looks like this
I would like to get something like this
Sum H and previous H =
CALCULATE(
Sum(Table[h],
FILTER(All(Table[Date]), Table[Date] <= MAX(Table[Date])
)
I tried this solution but it doesn't work
- Anonymous6 years ago
_hours = CALCULATE(SUM('Table'[h]),ALLEXCEPT('Table','Table'[Month])) Comm_Hours = CALCULATE(SUM('Table'[h]),FILTER(ALL('Table'[Month]),'Table'[Month]<=MAX('Table'[Month])))
2 Replies
- AnonymousNot applicable
_hours = CALCULATE(SUM('Table'[h]),ALLEXCEPT('Table','Table'[Month])) Comm_Hours = CALCULATE(SUM('Table'[h]),FILTER(ALL('Table'[Month]),'Table'[Month]<=MAX('Table'[Month])))- wiktorius1984Regular Visitor
Thank you very much, everything works beautifully