Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Trim string value

Hi all,

I have a Customer of a similar value -  'Crazy Customer 307300    A90000', but I'd like to only show/return :

'Crazy Customer'..... So basically anything that is in my other Customer Table, with no numbers/characters following.

Any ideas on how I could achieve this.?

Thanks

4 Replies
sushil353
Master II
Master II

use mid funtion.

mid( Date,3,2 ) where Date = 970714 returns 07.

HTH

Sushil

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Use below script.

     Load purgechar(Field_Name,'1234567890') as New_Field from xyz.

     This script will remove the numbers from your field value.

    

     If you need anything else to be purge then you can include that also into the script.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try this

=Trim(KeepChar(DimensionName, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz '))

Hope this helps you.

Regards,

Jagan.

Anonymous
Not applicable
Author

thanks a lot, it was so helpful