The Concat() function can also be used in the frontend instead of the script. In this case, we will have to create a calculated dimension, as follows:
=AGGR(Concat(DISTINCT Product,','),OrderID)
Call it Products. As mentioned earlier, being an aggregation function, Concat() requires an AGGR that is a substitute of Group By used in the script.