Forum Discussion
rogerthat
Helper I
3 years agoEARLIER Function too Slow!
Hi, I currently have the below calculated column and I suspect the EARLIER function is taking most of the memory when I try to refresh. ObjectIndex = CALCULATE ( COUNT ( DATA[ID ), ...
- 3 years ago
rogerthat You could try this:
ObjectIndex = VAR __Date = MAX(DATA[Date]) VAR __Return = CALCULATE ( COUNT ( DATA[ID ), ALLEXCEPT ( DATA, DATA[ID )), DATA[Date )<= __Date ) ) ) RETURN __Return
Greg_Deckler
Community Champion
3 years agorogerthat You could try this:
ObjectIndex =
VAR __Date = MAX(DATA[Date])
VAR __Return =
CALCULATE (
COUNT ( DATA[ID ),
ALLEXCEPT ( DATA, DATA[ID )),
DATA[Date )<= __Date ) )
)
RETURN
__Return