Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
andyrebs
Contributor III
Contributor III

remove the spaces

Hi ,

how can I write the script, if i want to remove the spaces in the field?

Example:

Field
(London    )
(London)
(Paris       )
(Paris)

Many thanks

1 Solution

Accepted Solutions
Not applicable

Hi Andy,

Use below code.

 

 

text(trim(purgechar(Field, ' ')))

View solution in original post

5 Replies
Not applicable

Hi Andy,

Use below code.

 

 

text(trim(purgechar(Field, ' ')))

Not applicable

Hi,

Trim(Subfield(FieldName,')',1))&')' as FieldName

It might helps you.

Best of luck

Not applicable

Hi,

have you tried TRIM function ?

Load *,

       Trim(Field) as FieldTrim

From ....

Hope it helps

Giampiero

Not applicable

Hi in the script write
LOAD
trim (field) as newfield
from...
andyrebs
Contributor III
Contributor III
Author

Many Thanks