LASTPOPULATEDDESCENDANTVALUE
LASTPOPULATEDDESCENDANTVALUE will return the last child with a value for a given consolidation intersection. This function only works at a consolidated level.
js
LASTPOPULATEDDESCENDANTVALUE(dimension)
Parameters
dimension
- The dimension used to identify the last descendant value.
Examples
js
IF(ISLEAF(), CONTINUE, LASTPOPULATEDDESCENDANTVALUE("Time"))
Note: If this is calculating a N-Level value it will return said value. If this is calculating a consolidation on the Time dimension it will only return the first descendants value.
If you were looking at 2020
, this would return the value for 2020 - Feb
, if 2020 - Jan
was empty.