Forum Discussion
Mauri_Castro_70
Helper I
2 years agoHelp with Swith() True() Calculated Column with multiple Criterias
Hello Guys, I am traying to map some values/offerings to specific users using Switch/true with multiple criterias such as: User_name = SWITCH ( TRUE (), CONTAINSSTRING ('Offering'[Offering...
rsbin
Community Champion
2 years agoPlease try the following modification:
User_name = SWITCH (
TRUE (),
OR( CONTAINSSTRING ('Offering'[Offering], "Mobility"), CONTAINSSTRING ( [Offering], "Security" ))
&& NOT( CONTAINSSTRING ( [Approver], "L2" ))
&& NOT (CONTAINSSTRING ( [Region], "WW" ))
&& NOT (CONTAINSSTRING ( [Region], "Asia" )) && NOT (CONTAINSSTRING ( [Region], "ANZ" )), "Mike",
"John" )
Not sure if this is the final result you are looking for:
Hope this works.
Regards,
- Mauri_Castro_702 years ago
Helper I
OMG!!! It worked perfectly! Thanks so much!!!
You Rock!
Mauri Castro
- Mauri_Castro_702 years ago
Helper I
Sorry, One more quick question. I see that the OR operator only allows for 2 Logical arguments... how can I include a 3rd argument? Should I enter a whole new string for the same User_Name?
Thanks again!
Mauricio
- rsbin2 years ago
Community Champion
Glad to hear it worked for you. As for adding a third argument, simply "nest" them as you would an IF statement in Excel.
OR( Condition 3, OR ( Condition 1, Condition 2) ).Best Regards,