Forum Discussion
Anonymous
4 years agoNot applicable
Dax - Sum values by date
Hi team, I have Date and Value columns coming from one table, and I need a new calculated column to show the total sum of the values by date. Date&Time Value Needed result (SUM by date) ...
- 4 years ago
Anonymous So, make the following tweak in that measure:
Result1= CALCULATE(SUM(TableName[ValuesColumn]),ALLEXCEPT(TableName,TableName[Date_]),TableName[Task Desc]="MO"))
amitchandak
Super User
4 years agoAnonymous , New columns
new column =
var _date = datevalue([Date&Time])
return
sumx(filter(Table, datevalue([Date&Time]) = _date ), [Value])
new column =
var _date = datevalue([Date&Time])
var _max = maxx(filter(Table, datevalue([Date&Time]), [Date&Time])
return
if([Date&Time] =_max, sumx(filter(Table, datevalue([Date&Time]) = _date ), [Value]), blank())