Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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.