About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Last updated: Feb 11, 2025
The functions
, @MEAN
, @SUM
,
@MIN
, and @MAX
work on, at most, all of the records read up to
and including the current one. In some cases, however, it is useful to be able to work out how
values in the current record compare with values seen in the entire data set. Using a Set Globals
node to generate values across the entire data set, you can access these values in a CLEM expression
using the global functions.@SDEV
For example,
@GLOBAL_MAX(Age)
returns the highest value of
in the data set, while the
expression Age
(Value - @GLOBAL_MEAN(Value)) / @GLOBAL_SDEV(Value)
expresses the difference between this record's
and the
global mean as a number of standard deviations. You can use global values only after they have been
calculated by a Set Globals node.Value
Function | Result | Description |
---|---|---|
|
Number | Returns the maximum value for FIELD over the whole data set, as previously generated by a Set Globals node. FIELD must be the name of a numeric, date/time/datetime, or string field. If the corresponding global value has not been set, an error occurs. |
|
Number | Returns the minimum value for FIELD over the whole data set, as previously generated by a Set Globals node. FIELD must be the name of a numeric, date/time/datetime, or string field. If the corresponding global value has not been set, an error occurs. |
|
Number | Returns the standard deviation of values for FIELD over the whole data set, as previously generated by a Set Globals node. FIELD must be the name of a numeric field. If the corresponding global value has not been set, an error occurs. |
|
Number | Returns the mean average of values for FIELD over the whole data set, as previously generated by a Set Globals node. FIELD must be the name of a numeric field. If the corresponding global value has not been set, an error occurs. |
|
Number | Returns the sum of values for FIELD over the whole data set, as previously generated by a Set Globals node. FIELD must be the name of a numeric field. If the corresponding global value has not been set, an error occurs. |
Was the topic helpful?
0/1000