Skip to main content

SubStringCount - script and chart function

SubstringCount() returns the number of occurrences of the specified substring in the input string text. If there is no match, 0 is returned.


SubStringCount(text, sub_string)

Return data type: integer


SubStringCount arguments
Argument Description
text The original string.
sub_string A string which may occur one or more times within the input string text.

Examples and results:  

Examples and results
Example Result
SubStringCount ( 'abcdefgcdxyz', 'cd' ) Returns '2'
SubStringCount ( 'abcdefgcdxyz', 'dc' ) Returns '0'

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!

Join the Analytics Modernization Program

Remove banner from view

Modernize without compromising your valuable QlikView apps with the Analytics Modernization Program. Click here for more information or reach out: