Generates an array of all unique elements among one or more arrays.

Array literal reference example:

arrayunique([["A","B"],["A","C"]])


Output:
 Returns a single array:

["A","B","C"] 

Single-column reference example:


arrayunique([array1])

Output: Returns a single array of all unique elements in array1 .

Multi-column reference example:

arrayunique([array1,array2])

Output: Returns a single array listing all unique elements in array1 and array2 .

arrayunique(array_ref1,array_ref2)


ArgumentRequired?Data TypeDescription
array_ref1Ystring or arrayName of first column or first array literal to apply to the function
array_ref2Nstring or arrayName of second column or second array literal to apply to the function

array_ref1, array_ref2

Array literals or names of the array columns whose unique elements you want to derive.

Required?Data TypeExample Value
Yes (at least one)Array literal or column referencemyArray1, myArray2

Example - Simple unique example