Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Kohli
Creator II
Creator II

What is the expression or a query to find the number of 'A'characters in the string 'NA

what is the expression or a query to find the number of 'A'characters in the string 'BANGALORE'?

2 Replies
Ivan_Bozov
Luminary
Luminary

SubStringCount(text, sub_string), e.g. SubStringCount ('abcd', 'ab') returns 1.

vizmind.eu
Anil_Babu_Samineni

Qlik is Case-Sensitive.

=SubStringCount('BANGALORE',Upper('a'))

Or

=SubStringCount('BANGALORE','A')

Or

=SubStringCount('BANGALORE','a') -- This will return Zero because the string is not there in the word

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful