Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Count using if statement

How can I count words which have the same first three characters (e.g. in SQL "abc%" )
using if statement maybe!

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

like this

if(left(Field,3)='abc',count(field))

View solution in original post

9 Replies
Not applicable
Author

Count(Distinct Left(FIELD,3))

Anonymous
Not applicable
Author

like this

if(left(Field,3)='abc',count(field))

sunny_talwar

Or may be this:

Count({<Field = {'abc*'}>} Field)

Anonymous
Not applicable
Author

Hi Mohammed,

IF(Wildmatch(Field,'abc*'),Count(Field))


sujeetsingh
Master III
Master III

sunindia‌ has given the best performing expression.

Anonymous
Not applicable
Author

thanks a lot it's working

Anonymous
Not applicable
Author

you welcome

Regards!

Anonymous
Not applicable
Author

if you find the right answer could  close the thread please

Regards.

Anonymous
Not applicable
Author

from where i can close the threat i don't know how.

Best Regards.