Forum Discussion
Anonymous
7 years agoNot applicable
How to use Switch on different columns
Hi, I am a beginner :) I need to nest several switch. Here is the idea (i am creating a new column) : - If in column A there is the expression "Smart", then return "Idiot", if there is "Green"...
- 7 years ago
Hi Anonymous,
Please see the below.Column = SWITCH( TRUE, YourTable[Column A] = "Smart", "Idiot", YourTable[Column B] = "Tiger", "Animal", YourTable[Column B] )
Regards,
Mariusz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Mariusz
Community Champion
7 years agoHi Anonymous,
Please see the below.
Column =
SWITCH(
TRUE,
YourTable[Column A] = "Smart", "Idiot",
YourTable[Column B] = "Tiger", "Animal",
YourTable[Column B]
)
Regards,
Mariusz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
7 years agoNot applicable
Thank you !!