Early Access: The content on this website is provided for informational purposes only in connection with pre-General Availability Qlik Products.
All content is subject to change and is provided without warranty.
Skip to main content Skip to complementary content

Trim - script and chart function

Trim() returns the input string trimmed of any leading and trailing spaces.

Syntax:  

Trim(text)

Return data type: string

Arguments
Argument Description
text The string to evaluate.
Example: Chart expression
Example Result
Trim( ' abc' ) Returns abc
Trim( 'abc ' ) Returns abc
Trim( ' abc ' ) Returns abc

Example - Trim fundamentals

Example - Trim scenario

Example - Trim advanced scenario

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!