Hello all,
I know there's a lot of stuff out there about CALCULATE, but I wonder if someone can point me in the right direction,
I've created a running total by each month using DAX as a calculated column. I've also got the same as a measure , the difference is the definition of the variable , in
the measure it seems to need to be max(date ) ;
< Newm2:=VAR Sdate = Table1[Date]
RETURN CALCULATE(SUM([Unit]),Table1[Date]<= Sdate && Table1[Date]> EOMONTH(Sdate,-1)) >
But for the measure I use
Newm2:=VAR maxdate = MAX(Table1[Date])
RETURN CALCULATE(SUM([Unit]),Table1[Date]<= maxdate && Table1[Date]> EOMONTH(maxdate,-1))
I've been trying to understand / visualize (as it is dropped into a pivot table ) how the Calculate affects the variable or if it does at all ? #
Richard
I know there's a lot of stuff out there about CALCULATE, but I wonder if someone can point me in the right direction,
I've created a running total by each month using DAX as a calculated column. I've also got the same as a measure , the difference is the definition of the variable , in
the measure it seems to need to be max(date ) ;
< Newm2:=VAR Sdate = Table1[Date]
RETURN CALCULATE(SUM([Unit]),Table1[Date]<= Sdate && Table1[Date]> EOMONTH(Sdate,-1)) >
But for the measure I use
Newm2:=VAR maxdate = MAX(Table1[Date])
RETURN CALCULATE(SUM([Unit]),Table1[Date]<= maxdate && Table1[Date]> EOMONTH(maxdate,-1))
I've been trying to understand / visualize (as it is dropped into a pivot table ) how the Calculate affects the variable or if it does at all ? #
Richard