In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

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
Top Solution Authors