Developer Documentation Library > UNICOM Intelligence Function Library > Categorical functions > Unique
 
Unique
Returns a category list with any duplicate categories removed.
Syntax
Unique(<value>)
Parameter
<value>
Type: Categorical
Categorical value.
(return)
Type: Categorical
The categories in <value>, but with any duplicates removed.
Notes
If the current value is NULL, <value> is an empty Categorical value ({}) and the return value is also an empty Categorical value.
<value> cannot consist of a category expression.
Examples
Function call
Q1
Result
Q1.Unique()
{5,1,6,4,3,5,2,4}
{5,1,6,4,3,2}
Unique(Q1)
{3,1,2}
{3,1,2}
See also
Categorical functions