Sorry Mona - if you'd like to expand on what you are trying to achieve and why you're taking the approach you are then maybe we can help more. I'm afraid I really don't understand what you're trying to do. Does Stefan's expression above do it for you?

will create a list of the comma separated ActivityNew values, each in quotes (chr(39) is calling the function to return ' with given ASCII code 39 for ' ). The list will then be taken as element_set by the set analysis expression, assigning the values to the field Activity.

I noted also that adding a DISTINCT before ActivitiyNew might be a bit more elegant.

Hope this solves your issue.

Regards,

Stefan

P.S: In cases like that, it might be good to spend a few words on your "big picture", this may allow to disregard some solutions upfront and may save some time