Generates a nested array containing the cross-product of all elements in two or more arrays.

NOTE: Be careful applying this function across columns of large arrays. A limit is automatically applied on large arrays to prevent overloading the browser. Avoid apply the ARRAYCROSS transform to very wide columns.

Array literal reference example:

arraycross[["A","B"],["1","2","3"]] )

Returns a single array:


Column reference example:


Output: Returns an array containing a single array listing all combinations of elements between array1, array2 , and array3.


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

array_ref1, array_ref2

Array literal or name of the array column whose intersection you want to derive.

Required?Data TypeExample Value
YesArray literal or column referencemyArray1, myArray2

Example - Simple cross example