is there a way to use "IN" clause with the "List" aggregate function, like in this example:
SELECT
FirstName,
LastName,
CASE
WHEN 1 IN LIST(ID) THEN 'Admin'
WHEN 2 IN LIST(ID) THEN 'Moderator'
WHEN 3 IN LIST(ID) THEN 'Owner'
ELSE
String(FirstName, ' ', LastName)
END as Description
FROM Users
Group By FirstName, LastName;
and if not what is the work around for that?
If I uderstant your query corectly, this should net the result you want:
Alternative but not pretty workaround could be
CASE WHEN ','+LIST(ID)+',' LIKE '%,1,%' THEN ...