Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

General Discussions

Discuss any topics that are not product-specific here.
SOLVED

Help needed with String Formula

Anee
7 - Meteor

Data has 2 columns - Employment Type and Global Career Band - both V_String

 

Trying to write a formula like below. However, not getting the desired result. No change infact in the output and input. I am sure I am not using the correct syntax for the piece in formula highlighted in red, which is whatever is there in Global Career Band, overwrite with 'Not Applicable'

 

if Contains([Employment Type], "Service Provider")
Then Replace([Global Career Band], "*" , "Not Applicable")
Else [Global Career Band]
Endif

3 REPLIES 3
Deano478
12 - Quasar

@Anee We will need to see the data so that we can adjust the formula accordingly

Qiu
21 - Polaris
21 - Polaris

@Anee 

You are tryting to use the * as wild card?

If that is the case, try this one

 

if Contains([Employment Type], "Service Provider")
Then Replace([Global Career Band], [Global Career Band] , "Not Applicable")
Else [Global Career Band]
Endif

or just simply

 

if Contains([Employment Type], "Service Provider")
Then "Not Applicable"
Else [Global Career Band]
Endif




Anee
7 - Meteor

Thanks @Qiu for the quick turnaround. It worked!!

Labels