Oracle® OLAP DML Reference 11g Release 1 (11.1) Part Number B28126-01 |
|
|
View PDF |
The CHANGEDVALUES function identifies if any value in a variable has changed (or the number of values that have changed) since the last time a variable was aggregated.
Return Value
BOOLEAN unless you specify NUMBER
for returntype.
When the function returns a BOOLEAN value, that value is TRUE when any value has changed since the variable was last aggregated, FALSE when no values have changed, or NA when the function cannot determine if any values have changed or not.
When the function returns a NUMBER value, that value is the number of values that have changed since the variable was last aggregated.
Syntax
CHANGEDVALUES ( variable [(partition ...)] [returntype] )
Arguments
The name of the variable that you want to check for changed values.
The name of one or more partitions, separated by commas, that you want to check for changed values.
NUMBER when you want the function to return a numeric value that is the number of values that have changed. When you want the function to return whether or not any value has changed since the last aggregation, specify BOOLEAN or leave this argument empty as BOOLEAN is the default value for returntype.