BiffStockdale
7 years agoQrew Trainee
Additive Multi Select issues with contains
I have a multi select field where the choices affect one or more of six other currency fields. The idea is that when a choice is made in the Multi Select that choice may add dollar amounts to one or more of the six fields and multiple selections should add together in those six fields.
The problem is this
If I use the following formula syntax then multiple choices seem to cancel out or keep further Ifs from processing
If(ToText([Radius Fees])="Cable Abort",0,0)+
If(ToText([Radius Fees])="Greater than 24 - No date",0,0)+
If(ToText([Radius Fees])="LEAD Abort",0,0)+
If(ToText([Radius Fees])="HANDS Abort",0,0)+
If(ToText([Radius Fees])="RADIUS Abort",100,0)+
If instead I use Contains in the syntax it seems to work better, However, due to similar words in the choices in the multi select it seems that Contains improperly adds too much. Essentially, where I would expect it to look for and only add if the whole quoted string exists, its seems to add selections when it sees similar words in the portions of the quoted strings.
If(Contains(ToText([Radius Fees]),"Cable Abort"),0,0)+
If(Contains(ToText([Radius Fees]),"Greater than 24 - No date"),0,0)+
If(Contains(ToText([Radius Fees]),"LEAD Abort"),0,0)+
If(Contains(ToText([Radius Fees]),"HANDS Abort"),0,0)+
If(Contains(ToText([Radius Fees]),"RADIUS Abort"),100,0)+
If(Contains(ToText([Radius Fees]),"Missing Cable - LMI"),400,0)+
If(Contains(ToText([Radius Fees]),"Missing Cable - Radius"),0,0)+
If(Contains(ToText([Radius Fees]),"Radius Turn away LEAD"),275,0)+
If(Contains(ToText([Radius Fees]),"Radius Turn away HANDS"),0,0)+
If(Contains(ToText([Radius Fees]),"Revisit LEAD Abort"),0,0)+
If(Contains(ToText([Radius Fees]),"Revisit Radius Abort"),0,0)
Any suggestions as to syntax I could use so that contains only kicks in when the full quoted string is found? Case maybe? Can Case be used with + ?
Thanks for any suggestions!
The problem is this
If I use the following formula syntax then multiple choices seem to cancel out or keep further Ifs from processing
If(ToText([Radius Fees])="Cable Abort",0,0)+
If(ToText([Radius Fees])="Greater than 24 - No date",0,0)+
If(ToText([Radius Fees])="LEAD Abort",0,0)+
If(ToText([Radius Fees])="HANDS Abort",0,0)+
If(ToText([Radius Fees])="RADIUS Abort",100,0)+
If instead I use Contains in the syntax it seems to work better, However, due to similar words in the choices in the multi select it seems that Contains improperly adds too much. Essentially, where I would expect it to look for and only add if the whole quoted string exists, its seems to add selections when it sees similar words in the portions of the quoted strings.
If(Contains(ToText([Radius Fees]),"Cable Abort"),0,0)+
If(Contains(ToText([Radius Fees]),"Greater than 24 - No date"),0,0)+
If(Contains(ToText([Radius Fees]),"LEAD Abort"),0,0)+
If(Contains(ToText([Radius Fees]),"HANDS Abort"),0,0)+
If(Contains(ToText([Radius Fees]),"RADIUS Abort"),100,0)+
If(Contains(ToText([Radius Fees]),"Missing Cable - LMI"),400,0)+
If(Contains(ToText([Radius Fees]),"Missing Cable - Radius"),0,0)+
If(Contains(ToText([Radius Fees]),"Radius Turn away LEAD"),275,0)+
If(Contains(ToText([Radius Fees]),"Radius Turn away HANDS"),0,0)+
If(Contains(ToText([Radius Fees]),"Revisit LEAD Abort"),0,0)+
If(Contains(ToText([Radius Fees]),"Revisit Radius Abort"),0,0)
Any suggestions as to syntax I could use so that contains only kicks in when the full quoted string is found? Case maybe? Can Case be used with + ?
Thanks for any suggestions!