Hi,
Can someone explain why in a cumulative total by date in a calculated column the filter needs the whole table, as opposed to a measure,
where the advice seems to be use the least number of columns so in this case one ; date. But if I just put filer Table[ Date] in a CC I
just get back the row value? what's happening?
Calculated column Filter entire table
Measure just date ;
Can someone explain why in a cumulative total by date in a calculated column the filter needs the whole table, as opposed to a measure,
where the advice seems to be use the least number of columns so in this case one ; date. But if I just put filer Table[ Date] in a CC I
just get back the row value? what's happening?
Calculated column Filter entire table
Excel Formula:
CALCULATE(SUM(Table1[Sales]), FILTER(ALL(Table1),
Table1[Date]<= EARLIER(Table1[Date]) ))
Measure just date ;
Excel Formula:
RTC :=
VAR sdate =
MAX ( Table1[Date] )
RETURN
CALCULATE (
SUM ( Table1[Sales] ),
FILTER ( ALL ( Table1[Date] ), Table1[Date] <= sdate )
)