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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now

How to remove trailing spaces from a column in Replicate

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
KellyHobson
Former Employee
Former Employee

How to remove trailing spaces from a column in Replicate

Last Update:

May 27, 2022 3:40:42 PM

Updated By:

KellyHobson

Created date:

May 27, 2022 3:40:42 PM

You can use the trim(x,y) function in Expression Builder.

The trim(x,y) function returns a string formed by removing all characters that appear in y from both sides of x. If there is no value for y, trim(x) removes spaces from both sides of x.


Go to Task Designer -> Task_Name -> Table Settings -> Transform -> click on the f(x) for column_name

 

1.png

 

For Build expression enter:

trim($first_name)

 

2.png

 

Save and then test the task to see if trailing spaces are removed.

 

Environment

 

The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.

 

Contributors
Version history
Last update:
‎2022-05-27 03:40 PM
Updated by: