Skip to main content



Current Function

Returns the value of a field within the context of current expression.

Syntax

Current(field)

Returns the value of a field within the context of current expression.

Arguments

field Field - A field within the current expression root context.

Remarks

  • Used to access a field in the context of the current expression, which may have the same name as a field in the context of the collection member when authoring an aggregate function. For example, it may be used within a filter expression of a Sum function that is nested within another aggregate expression, to access a field in the context of the root expression.

  • May only be used from within the context of a function argument, it is not applicable to use as a standalone function.

Example:

Sum(Collection1, Field2, Field1 > Current(Field1)); // returns 24