Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
My text is SOLICITOR'S OFFICE in one of the dimension. I want to remove ' before S. how do I do that in script. how do I use replace().
Thanks.
Something like this or a little different based on what fits for you may be -
Replace(text,'''S','S')
tried this but doesn't work
Try this
LOAD
Replace([YourField], '''', '') AS CleanedField
FROM [YourSource];
Or
LOAD
PurgeChar([YourField], ' ' ' ') AS CleanedField
FROM [Your source];
Any of the below method will do:
Hi,
Maybe you are having different character than ' ?
Answers above are correct so you may want to just make sure you are replacing correct character as it can be different than '.
It may be ' or ` or something else
cheers
Or you can use A to Z all upper case and a to z lower case in ' ' below expression
LOAD
KeepChar(field, 'A-Z a-z ') AS CleaText
FROM source
So that you can remove any symbols ...it will keep only characters
Hi @Neha121
If the above solutions dont work using KeepChar()
Example
KeepChar(Field, 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM 0123456789') as TestFieldWithoutChar
Regards Jandre
Mark the solution as accepted that solved your problem and if you found it useful, press the like button! Check out my YouTube Channel | Follow me on LinkedIn