Hi there!
ARRAYUNIQUE doesn't quite work as expected when performing on rollups and linked record fields in certain scenarios. For example, let's say you have an event record linked to multiple customers, and you're pulling in the products these customers use (also linked records) via a lookup field. You can see in this example all of the duplicate products that are being pulled in via the lookup, because it's pulling in the results for all the customers it's linked to.
The Gala event is linked to customers A and B, so the product lookup is showing us all the products that both customers are linked to, which includes any instance in which they are linked to the same product.
![image.png](https://content.api.getguru.com/files/view/e1429a3e-404a-4bcf-8274-34148af554be)
Let's say you want to get a de-duped list of every product an event will be using, and remove any of the duplicative results. This won't work using ARRAYUNIQUE() either in a formula or a rollup. You can see in both options below, that it doesn't prevent the duplicate products in all scenarios.
![image.png](https://content.api.getguru.com/files/view/01518031-c6a6-47a0-8669-d61fee63f3d8)
In short, what's happening here is that ARRAYUNIQUE returns the unique combinations of linked records. It is the set that is being operated on (which is why it's working for the Party event - which has two repeating instances of PY, PZ). We don't currently have a way for ARRAYUNIQUE to return the unique subcomponents - like all the other instances you see above.
To work around this limitation, you can create a lookup field of the linked product field back in the Customer table...
![image.png](https://content.api.getguru.com/files/view/6a9a9ee7-f28c-41b0-85da-612533600c6b)
and then perform the ARRAYUNIQUE() function on that product lookup field within a rollup to get the desired unique results:
![image.png](https://content.api.getguru.com/files/view/67a2d115-26f2-48b7-bd5f-75ff86476f93)
![image.png](https://content.api.getguru.com/files/view/02e9106e-fdcc-48a9-8131-37bdd0abc02d)
Hope this helps point you in the right direction!