I have a long list of certification acronyms stored as "mylist". I am simply interested in creating a binary variable to represent whether each staff person possesses a certification whose acronym appears occurs in the list yes/no. If I apply the list to one column the code works great.
New Column( "Org-Approved Certification", Numeric, Nominal ) << Formula(
If( Contains( mylist, :"ONE_LICENSE_CODE" ),
1,
0
)
);
However, if I want to apply the list to several columns at once, the code runs without error but does not produce the correct value. I have 10 columns any one of which which might be housing the acronym so I need to check all 10 columns for acronyms in the list.
New Column( "Org-Approved Certification", Numeric, Nominal ) << Formula(
If(
Contains( mylist, :"ONE_LICENSE_CODE" ), 1,
0 | If( Contains( mylist, :"TWO_LICENSE_CODE" )
), 1,
0
)
);
Is there a way to point to multiple columns at once when applying the list?
Thank you!