ArrayAggDistinct
Last updated
Was this helpful?
Last updated
Was this helpful?
The ArrayAggDistinct function identifies distinct non-null row values in a column or group and aggregates them into a single array.
Function arguments:
value
(required) The column containing values to join.
direction
(optional) The directional order to sort the column values.
āascā
sorts values in ascending order.
ādescā
sorts values in descending order.
When a direction isnāt specified, Analytics Pro sorts values in the same order as the column referenced in the value argument. If the referenced column isnāt sorted, Analytics Pro sorts values in ascending order by default.
For each grouping (grouped by order number) the ArrayAggDistinct function returns an array containing distinct non-null valuesāsorted in ascending orderāfrom the corresponding rows in the Product Type column.