Skip to main content
Announcements
See why Qlik was named a Leader in the 2025 Gartner® Magic Quadrant™ for Augmented Data Quality Solutions: GET THE REPORT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Remove symbols

I have table with multiple fields and from on field named Names i want to remove the symbol |

KEY,Names
1,Alan | Bros
2,Peter | Kobal
3,James | Kris
4,Martin | Ross
5,Kristien | Grenn

Jay

1 Solution

Accepted Solutions
its_anandrjs

Hi,

Then try this ways

Source:

LOAD *,SubField(Names,'|',1) as FirstName,

SubField(Names,'|',2) as LastName;

LOAD SubField(Names,'|') as New,KEY,    Names;

LOAD * Inline

[

KEY,    Names

1,    Alan | Bros

2,    Peter | Kobal

3,    James | Kris

4,    Martin | Ross

5,    Kristien | Grenn

];

Regards

Anand

View solution in original post

10 Replies
Anonymous
Not applicable
Author

=purgechar ( 'Alan | Bros' , '|' )

saumyashah90
Specialist

Use

=Subfield(Names,'|',1)& ' ' &Subfield(Names,'|',2)

Not applicable
Author

Use the replace function.

An example: replace('abccde','cc','xyz') returns 'abxyzde'

In your case = Replace(Names,'|',' ')

Hope it helps!

Br,

T

its_anandrjs

Hi,

Try to load your table like this way

Source:

LOAD SubField(Names,'|') as New, KEY,   Names;

LOAD * Inline

[

KEY,    Names

1,    Alan | Bros

2,    Peter | Kobal

3,    James | Kris

4,    Martin | Ross

5,    Kristien | Grenn

];

Regards

Anand

saumyashah90
Specialist

=purgechar(Names,'|')

jpenuliar
Partner - Specialist III

You can use purgeChar().

ex: PurgeChar(Names,'|')

saumyashah90
Specialist

Check this file

Not applicable
Author

And how can i create the two fields in the load script from the same.

its_anandrjs

Hi,

Then try this ways

Source:

LOAD *,SubField(Names,'|',1) as FirstName,

SubField(Names,'|',2) as LastName;

LOAD SubField(Names,'|') as New,KEY,    Names;

LOAD * Inline

[

KEY,    Names

1,    Alan | Bros

2,    Peter | Kobal

3,    James | Kris

4,    Martin | Ross

5,    Kristien | Grenn

];

Regards

Anand