Forum Discussion
Anonymous
3 years agoNot applicable
Gender
Hello !
I need help categorizing different numbers that tell what gender it is.
Ex:
0, woman
1, man
2, woman
3, man
etc
Is there any good way to create a new variable for it?
- 3 years ago
Hi Anonymous try it
SWITCH( TRUE(), OR([#] = 0, [#] = 2), "woman", OR([#] = 1, [#] = 3), "man", "etc" ) - 3 years ago
Anonymous See also this file, I optimized the measure and gave 2 examples
DimaMD
Solution Sage
3 years agoHi Anonymous try it
SWITCH(
TRUE(),
OR([#] = 0, [#] = 2), "woman",
OR([#] = 1, [#] = 3), "man",
"etc"
)