Oracle® OLAP DML Reference 11g Release 2 (11.2) Part Number E17122-07 |
|
|
PDF · Mobi · ePub |
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.
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.
CHANGEDVALUES ( variable [(PARTITION partition [,PARTITION partition]...)] [returntype] )
The name of the variable to check for changed values.
The name of one or more partitions of variable, separated by commas, 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.