Based on the sample data how can I create a new column/variable, A&B, based on when certain conditions are met from two columns using Arcade and then assign colors to the new column's categorical values accordingly?
I am using Pro 3.1.
Sample data:
ID A B A&B
1 Present Present A Present & B Present
2 Absent Present A Absent & B Present
3 Present Absent A Present & B Absent
4 Absent Absent A Absent & B Absent
5 Present Present A Present & B Present
6 Absent Present A Absent & B Present
7 Present Absent A Present & B Absent
8 Absent Absent A Absent & B Absent
Color conditions:
- If A Present & B Present then color red.
- If A Absent & B Present or A Present & B Absent then color orange.
- If A Absent & B Absent then color yellow.