Forum Discussion
Calculated Column of Sum per Month
- 8 years ago
Anonymous
Try this calculated column:
TotalPerMonth = CALCULATE(SUM(Table1[Amount]),FILTER(Table1,Table1[Date] = EARLIER(Table1[Date])))
Anonymous
Try this calculated column:
TotalPerMonth = CALCULATE(SUM(Table1[Amount]),FILTER(Table1,Table1[Date] = EARLIER(Table1[Date])))
- Anonymous8 years agoNot applicable
Hey danb!
The code you posted creates an error "EARLIER/EARLIEST refers to an earlier row context which doesn't exist."
Any Ideas?
- danb8 years ago
Resolver I
Anonymous
Enter in the formula as a "New Column" and not a "New Measure"
- Anonymous8 years agoNot applicable
Yup, I am entering it as a new column
- Anonymous6 years agoNot applicable
Hello danb ,
I am trying to accomplish the same thing, however, I do not have an import file, and therefore, cannot create that in power query...or use the EARLIER function as it is not supported for DirectQuery.
Do you have any ideas of how to achieve this?
Thanks!