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

Replace - script and chart function

Replace() returns a string after replacing all occurrences of a given substring within the input string with another substring. The function is non-recursive and works from left to right.

Syntax:  

Replace(text, from_str, to_str)

Return data type: string

Arguments
Argument Description
text The original string.
from_str A string that may occur one or more times within the input string text.
to_str The string that will replace all occurrences of from_str within the string text.
Example: Chart expression
Example Result
Replace( 'abccde','cc','xyz' ) Returns abxyzde

Example - Repeat fundamentals

Example - Repeat scenario

Learn more

 

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!