MicroStrategy ONE

Last

Returns the last value in a sorted set of values. This is a group-value function.

Syntax

Last<FactID, SortBy>(Argument)

  • FactID is a parameter that forces a calculation to take place on a specific fact table containing the FactID.

  • SortBy is a parameter that allows you to define the attribute or metric on which to sort the data; if no SortBy is defined, they are sorted by the values.

  • Argument is an attribute, fact, or metric representing a list of values.

For additional information on and an example of this function, refer to the Functions Reference.