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: 
Anonymous
Not applicable

Counting Substrings

I'm trying to count how many substrings are there in one string that contains multiple values separated by ";"

For example, if field MultipleValues contain "ab;ac;ad;ef"

I should get 4 back.

I tried doing:

GetSelectedCount(MultipleValues, Subfield(MulitipleValues, ';'))

or

SubStirngCount(MultipleValues, Subfield(MultipleValues, ';'))

but didn't get desired results.

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Thanks Miguel but I believe I got it by using:

SubStringCount(MultipleValues, ';') + 1

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Thanks Miguel but I believe I got it by using:

SubStringCount(MultipleValues, ';') + 1