Forum Discussion
Anonymous
6 years agoNot applicable
Optimize MAXX
How can I find the maximum of previous rows with rescpect to the current row? currently I get a memory error when I run this DAX. maxbi:= MAXX( FILTER( Allexcept('TI'; 'TI'[Assignment group]; '...
lbendlin
Super User
6 years agoPut the max(date) in a variable to compute it only once
maxbi:=
var md = MAX([date])
return MAXX(
FILTER( Allexcept('TI'; 'TI'[Assignment group]; 'TI'[Type])
; [date] <= md )
; 'TI'[Stock])Anonymous
6 years agoNot applicable
I mean by that to calculate dates previous to the selected row date.