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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Text function: number of appearences in text

Hi All,

what's the text function to get the number of of character set appearences in a text?

Regards,

Przemek

1 Solution

Accepted Solutions
swuehl
MVP
MVP

I believe you want to look into substringcount:

substringcount( text , substring)

Returns the number of times the string substring appears within the string text. The result is an integer. If there is no match, 0 is returned

Example:

substringcount ( 'abcdefgcdxyz', 'cd' ) returns 2

View solution in original post

2 Replies
swuehl
MVP
MVP

I believe you want to look into substringcount:

substringcount( text , substring)

Returns the number of times the string substring appears within the string text. The result is an integer. If there is no match, 0 is returned

Example:

substringcount ( 'abcdefgcdxyz', 'cd' ) returns 2

Not applicable
Author

Thank you, Stephan.