Hello,
I've been trying to write measure to give running total month by month using the 'Earlier' function rather than a variable;
This works;
< RTM:=VAR sdate = MAX(dtable[Date]) RETURN
CALCULATE(SUM(dtable[Price]),dtable[Date]<=sdate && dtable[Date]> EOMONTH(sdate,-1)) >
This doesn't , I do have it working as a calculated column.
< Newtoo:=CALCULATE( SUM(dtable[Price]) , dtable[Date]<=EARLIER(dtable[Date])
&& dtable[Date] > EOMONTH(EARLIER(dtable[Date]),-1)) >
I'd like to know where I'm going wrong?
Richard.
I've been trying to write measure to give running total month by month using the 'Earlier' function rather than a variable;
This works;
< RTM:=VAR sdate = MAX(dtable[Date]) RETURN
CALCULATE(SUM(dtable[Price]),dtable[Date]<=sdate && dtable[Date]> EOMONTH(sdate,-1)) >
This doesn't , I do have it working as a calculated column.
< Newtoo:=CALCULATE( SUM(dtable[Price]) , dtable[Date]<=EARLIER(dtable[Date])
&& dtable[Date] > EOMONTH(EARLIER(dtable[Date]),-1)) >
I'd like to know where I'm going wrong?
Richard.