Found this answer from Structure SME in Slack and works well!
WITH unit_a =
IF components.CONTAINS_ANY(array("TeamA1", "Team A2", "Team A3")) :
"Unit A" :
WITH unit_b =
IF components.CONTAINS_ANY(array("TeamB1", "Team B2", "Team B3")) :
"Unit B" :
WITH unit_c =
IF components.CONTAINS("TeamC1") :
"Unit C" :
WITH unit_d =
IF components.CONTAINS_ANY(array("TeamD1", "Team D2")) :
"Unit D" :
MERGE_ARRAYS(unit_a, unit_b, unit_c, unit_d)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.