UNIQUEThe UNIQUE function filters duplicate items from a collection. An expression resulting in a collection, never contains duplicate values. A subexpression with the COLLECT statement however, can contain duplicates. See the note on collections and duplicates for more info. Syntax Code Block |
---|
UNIQUE ( collection ) |
Examples Suppose the following model. Person instance | Person.name |
---|
Person_1 | “Kim” | Person_2 | “Rick” | Person_3 | “Bob” | Person_4 | “Rick” |
COLLECT Person.name FROM ALL Person = "Kim”, “Rick”, “Bob” (a result never contains duplicate values)
SIZE ( COLLECT Person.name FROM ALL Person ) = 4 (a subexpression can contain duplicate values)
SIZE ( UNIQUE ( COLLECT Person.name FROM ALL Person ) ) = 3 (the collection holds three unique values)
Include Page |
---|
| _nav_BackToTop |
---|
| _nav_BackToTop |
---|
|
|