Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

D toc


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

  • Input arrays can be referenced as column names or array literals.
  • If Array1 has M elements and Array2 has N elements, the generated array has M X N elements.

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.

D s

Array literal reference example:

D code

derive type:single value:ARRAYCROSS[["A","B"],["1","2","3"]])

Output: Generates a single array:

Code Block

Column reference example:

D code

derive type:single value:ARRAYCROSS(array1,array2,array3) as:'cross_Array'

Output: Generates a new cross_Array column containing a single array listing all combinations of elements between array1array2, and array3.

D s

D code

derive type:single value:ARRAYCROSS(array_ref1,array_ref2)

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

D s lang notes

array_ref1, array_ref2

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

D s

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

D s

Example - Simple cross example

Include Page
EXAMPLE - Nested Functions
EXAMPLE - Nested Functions

D s also