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

PurgeChar - script and chart function

PurgeChar() returns a string consisting of the characters contained in the input string ('text'), excluding any that appear in the second argument ('remove_chars').

Syntax:  

PurgeChar(text, remove_chars)

Return data type: string

Arguments
Argument Description
text The original string.
remove_chars A string containing the characters in text to be removed.
Example: Chart expressions
Example Result
PurgeChar( 'a1b2c3','123' ) Returns abc
PurgeChar( 'a1b2c3','1234' ) Returns abc
PurgeChar( 'a1b22c3','1234' ) Returns abc
PurgeChar( 'a1b2c3','312' ) Returns abc
PurgeChar ( 'a1b2c3','Abc' ) Returns a123

Example - PurgeChar fundamentals

Example - PurgeChar 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!